Re: [PATCH 3/4] rcu: Use better variable names in funnel locking loop

From: Joel Fernandes
Date: Wed May 23 2018 - 20:01:47 EST


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)" <joel@xxxxxxxxxxxxxxxxx>
> > >
> > > 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 <joel@xxxxxxxxxxxxxxxxx>
> > > Signed-off-by: Joel Fernandes (Google) <joel@xxxxxxxxxxxxxxxxx>
> >
> > 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!