Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp5005733imm; Mon, 14 May 2018 17:44:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoLDK2l4ojbqPJAW5kC4O43JaR0aerhFgTbKg0TgAX7wj4ND9Vyh4j4/LLyZRM68/l022rZ X-Received: by 2002:a65:654a:: with SMTP id a10-v6mr10069084pgw.107.1526345056856; Mon, 14 May 2018 17:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526345056; cv=none; d=google.com; s=arc-20160816; b=O6tZxU7eba/H8xbtdW5ULI7BV453I3BnZBJqZtjY99YYQ8EmxnPJWpEf2d9IWtbQ81 fcx4BcdVse+qh1lhGaZZn/EhAZv4WN9yQTyET9XwbETY9AxPJm+VA8RlWd6DJqrfK1pg q8VjYjvWgsofcmMeOm8l1PQUIKuXA+W54N/HGCAvsSskcQbawPU1/nGIE1CQRZD0xnP8 JlCZUSpScm2ybAC6lpX7GcSJ28HVTkuWAWhoWA0Qz0AMmkS4uewA3V5DF/xAhQEVjLdw 3yL2bD0UcCnibCkl/j702VsBFOiWY/9w4JDV5kdRAhLEfr9zp0C6IiSFFzamGJJNsMrS n3hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=gsciNVDrTRL2XgDYSFPC20zp8CU9+NgrFxE1M15TEt8=; b=cewBC39hseZsZQz7BziSk4EQk3IMz5KBzchI5ZU3hea1JqdbX2CqHN6YgTlPqfsCqb aMgoiayOHGq2DVhsjDRb0qen42pPux4+p7vurXVzvvb7noT8JNcZmaOwH9pAokBkZtqq vf6xJOyJ6ZoxND0ueXQBzE/gPlVQUS7JYYVitA97u8FML3TZzubYNLJma2FgZJZ36o/M ZTzCMD1yfXCkvkGAPnDz18rJU7OsyVgb2Ub7aSqBzqKIc8+w7DLt3BjdGiRrfIymgsjw IW2EOYfhRb2QpHzaIlF8lLRpQlM0MIf0Z3psOBZKcCIRmkYHveVkHgOggnkWGLUSd2Re uJIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes-org.20150623.gappssmtp.com header.s=20150623 header.b=gKufKO2x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z80-v6si10847886pfi.7.2018.05.14.17.44.02; Mon, 14 May 2018 17:44:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes-org.20150623.gappssmtp.com header.s=20150623 header.b=gKufKO2x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752501AbeEOAng (ORCPT + 99 others); Mon, 14 May 2018 20:43:36 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:45940 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752336AbeEOAnf (ORCPT ); Mon, 14 May 2018 20:43:35 -0400 Received: by mail-pf0-f181.google.com with SMTP id c10-v6so6804751pfi.12 for ; Mon, 14 May 2018 17:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=gsciNVDrTRL2XgDYSFPC20zp8CU9+NgrFxE1M15TEt8=; b=gKufKO2x2mm5iA2v33SBn5Rntsg/cxsSfNx+WCxfx/5jOCKaYID0r+pkoawGq+F5Vl v8DpO1Zh/CiZVFdpSOV+ra4RGwNkFDFob8jENEzd/G1vHRn37gk+3a82TqaHA8FLBmsP OvIa1MeP2UN9DpC0DrU66xF/z0fbVhR0SJwI1eCymAi49VrezM6SRoIGfFqRcplD+KVd wlVSOSPihvWKK12Kh2r0ala4/Ffu5UZEKj1HTQPHMAsr4RzElJzYgYZRmtqnBvRtCUGy hCqgAsfz2yhYdQO6iv9eynQFmz93cAGPwZL0aJ38bqWbGrUoTOa43R+6U9F//Xuw3c2N 2Jzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=gsciNVDrTRL2XgDYSFPC20zp8CU9+NgrFxE1M15TEt8=; b=TGDL405wbfLxaIXDY/NAgGWeAeNarqX3B5CqHkxzIwAfz21KKYZqAAXxpJHFdCvZdc j9p/sQi/gzFGmcEs8zyI/qUrQqLaQeaUIkCDcyKRNMoP3kDZeUfcVTy3Re6iLUFih1QF ejWvr9ZxnOA/e6dJ0ISbzkYejFGT+9QEUg/yIDTurJ2I9cEY0gXDlf8MbSg49hLFmhpr uyqX0Ge9ftsRHS3v+MKjlj8ixW9JFBifARJoOFpML9NyrI9JmPhwp466npLZHb9+SMUj mhEJY1lmwPcSIf94b0MUblcFyiQFvrKMlBrg7CsKYLPXSLFsHKLxc7FX9MxA/g8g7J2b 8jGg== X-Gm-Message-State: ALKqPwdb13/NTVYXFSHe463k7qOvYN09pQfgJleMMkxEP23D1wFboFfa 3AkEmTTZzwu5mTSA/E/ZogiNPA== X-Received: by 2002:a62:d751:: with SMTP id v17-v6mr12537928pfl.39.1526345015109; Mon, 14 May 2018 17:43:35 -0700 (PDT) Received: from localhost ([2620:0:1000:1600:3122:ea9c:d178:eb]) by smtp.gmail.com with ESMTPSA id c6-v6sm19259248pfj.91.2018.05.14.17.43.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 17:43:34 -0700 (PDT) Date: Mon, 14 May 2018 17:43:34 -0700 From: Joel Fernandes To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , byungchul.park@lge.com, kernel-team@android.com Subject: Re: [PATCH RFC 5/8] rcu: Use rcu_node as temporary variable in funnel locking loop Message-ID: <20180515004334.GC209519@joelaf.mtv.corp.google.com> References: <20180514031541.67247-1-joel@joelfernandes.org> <20180514031541.67247-6-joel@joelfernandes.org> <20180514180027.GC26088@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180514180027.GC26088@linux.vnet.ibm.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 14, 2018 at 11:00:27AM -0700, Paul E. McKenney wrote: > On Sun, May 13, 2018 at 08:15:38PM -0700, Joel Fernandes (Google) wrote: > > The funnel locking loop in rcu_start_this_gp uses rcu_root as a > > temporary variable while walking the combining tree. This causes a > > tiresome exercise of a code reader reminding themselves that rcu_root > > may not be root. Lets just call it rcu_node, and then finally when > > rcu_node is the rcu_root, lets assign it at that time. > > > > Just a clean up patch, no logical change. > > > > Signed-off-by: Joel Fernandes (Google) > > I agree that my names could use some improvement, but given that you > called it rnp_node in the patch and rcu_node in the commit log, I would > argue that rnp_node has a Hamming-distance problem. ;-) > > How about rnp_start for the formal parameter, rnp for the cursor running > up the tree, and retaining rnp_root for the root? Ok, that's fine with me. Probably easier to read too. I will rewrite it accordingly. thanks, - Joel