Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1501519imm; Wed, 23 May 2018 17:59:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoVuOrBtt9V89nOxzUu/ku7fxwIV/ctATznFt7SACPqyKL65dc+S1zdgLmJ79kvoM8d369M X-Received: by 2002:a62:8345:: with SMTP id h66-v6mr5060685pfe.0.1527123558367; Wed, 23 May 2018 17:59:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527123558; cv=none; d=google.com; s=arc-20160816; b=QbgmrMke/AeB2dtespVj0CJvrA4HCUE36Rcz8qBjpd3bYUDURoICXV8tAbPfYUmUst nDDYMFbVMGv4UM1rRwdPiLs21du1RUWiAwFhM3bQrEKeYzaiuTa7QCHKvyL7Sl4CGRi+ ajU85ThXoOUBzWvRhoX/492u4u654N1qOa5bGw+thPilViF0im0f4elLbJnwf2c5JPhu K5iWtkTe6J80dNZ37FWtzWwmgJ9OLGKFy9kPd5yUJ/Mg8ZXV349vLfiTYTQRVRO+QbU3 NrlHr0IsZzFwHdsoQcGEyr2294Yti0E2+Vf7Rx7vUSbz5qOCDuVhksLsRpPEs7+HtB3s zwlg== 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=t/2bc+2OgxVOtVGv+tvfKOUfV9Nse8BXtFMj1iBIPl0=; b=nFxsSJ55kZIC1reA83rOuuwvuq7g/QBqnueHqlJwhV7B5mvFZfOb0J3zrXkpNQMqHC CHsX/pdnegfNuFilPWyj0rql+914+2lV8RpAyCTkn+4w9fAvIwh8EwZTvrPYyVbiYdsC Ciom1/mP5I1WvlLWexQqK1/kyJ4cQqJmOQJFpvk+7nT8o90ezn+1XFERkinZ8N/9kgd5 p1cKtJldLKq7aqMjJtgCSU64r40vCP4qetvi9V2SOeN1suI6NhdBERPMXeWdX7efQ5Cs 4DRWQXCgS9mjOW5EvzBILXybOlHXDz2C/AnSe+9sh7672wd98Fv9eGLH5eMhqDxYaC22 mTsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=Tc+nVQG8; 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 v66-v6si19774608pfv.48.2018.05.23.17.59.03; Wed, 23 May 2018 17:59:18 -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 header.s=google header.b=Tc+nVQG8; 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 S935300AbeEXAyx (ORCPT + 99 others); Wed, 23 May 2018 20:54:53 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:45157 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935109AbeEXAyw (ORCPT ); Wed, 23 May 2018 20:54:52 -0400 Received: by mail-pf0-f194.google.com with SMTP id c10-v6so11313427pfi.12 for ; Wed, 23 May 2018 17:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=t/2bc+2OgxVOtVGv+tvfKOUfV9Nse8BXtFMj1iBIPl0=; b=Tc+nVQG8p6aD1LWahBwPM25sMYF9pWSawbTmmzDtOm073nSqezkcyXwRMOVY+3blsK VNPz07x7RoXAlJQaGA1Y8s9aRdZycS9RRsj8Ppnvj5Ziz6vB7WeKJvO603g0wb8ztALM XSxdHjTRmGvqBu0DCiw5c1NvCm3s5uqYp35ng= 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=t/2bc+2OgxVOtVGv+tvfKOUfV9Nse8BXtFMj1iBIPl0=; b=fxRURtdwv/FU7Ao3sR6wmdIC9vG7yMZURhbKCVJeO72cxP6U6ANMxSgkdEoVdHgp8w iu4pQrzgDbC6c6J0trIvQMG/MfE8FnGVHlizbUr02yfCQp1mucUSrNNHnESRbwhChzxx zjiKPkCAT3BaGbzAdSfmBquCg3l6vfO62kNvcVUUg2Z/kyE9LQUM+JljhMZEpAQXIc6Z sLLPTycKI9Gz/jL2C6J0wZMmefhiVPwa0UIcVF5ivHKDW/FrGJb+SsZjwBvfbTWOZU1I hesPKkpvI2zBmZQmgsZsKqbsdtuAjHpKdZpolF/nESyPOnIXLzGpzOGfsK7ebGYFdxr9 WkvA== X-Gm-Message-State: ALKqPwfUnIc0BnFLA11cQ2Y2IWNUIYClIGPvoS5zOC730ElGAuWh11VP ekHrRRtrQbEfNbFKqnEIE7agbw== X-Received: by 2002:a63:69c4:: with SMTP id e187-v6mr4008705pgc.415.1527123291999; Wed, 23 May 2018 17:54:51 -0700 (PDT) Received: from localhost ([2620:0:1000:1600:3122:ea9c:d178:eb]) by smtp.gmail.com with ESMTPSA id k2-v6sm38909259pfg.82.2018.05.23.17.54.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 17:54:51 -0700 (PDT) Date: Wed, 23 May 2018 17:54:50 -0700 From: Joel Fernandes To: "Paul E. McKenney" Cc: Joel Fernandes , linux-kernel@vger.kernel.org, Boqun Feng , byungchul.park@lge.com, Ingo Molnar , Josh Triplett , kernel-team@android.com, Lai Jiangshan , Mathieu Desnoyers , Peter Zilstra , Steven Rostedt Subject: Re: [PATCH 3/4] rcu: Use better variable names in funnel locking loop Message-ID: <20180524005450.GA171060@joelaf.mtv.corp.google.com> References: <20180523063815.198302-1-joel@joelfernandes.org> <20180523063815.198302-4-joel@joelfernandes.org> <20180523160617.GM3803@linux.vnet.ibm.com> <20180523192349.GA5845@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180523192349.GA5845@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 Wed, May 23, 2018 at 12:23:49PM -0700, Paul E. McKenney wrote: > On Wed, May 23, 2018 at 09:06:17AM -0700, Paul E. McKenney wrote: > > On Tue, May 22, 2018 at 11:38:14PM -0700, Joel Fernandes wrote: > > > From: "Joel Fernandes (Google)" > > > > > > 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 rnp, and rename other variables as > > > well to be more appropriate. > > > > > > Original patch: https://patchwork.kernel.org/patch/10396577/ > > > > > > Signed-off-by: Joel Fernandes > > > Signed-off-by: Joel Fernandes (Google) > > > > I used to have double Signed-off-by back when I was seconded to Linaro. > > But I am guessing that you want the second and don't need the first > > one. Unless you tell me otherwise, I will remove the first one on > > my next rebase. > > > > Anyway, the new variable names are much more clear, good stuff, > > queued for further review and testing, thank you! > > And it looks to me like I should fold in the patchlet below to change to > rnp_start in a comment. Please let me know if this would mess things up. Yes, missed that. Sorry. It looks great, thanks!