rcu: Add comments to final rcu_gp_cleanup() "if" statement
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 2 Mar 2022 19:01:37 +0000 (11:01 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 20 Apr 2022 23:51:10 +0000 (16:51 -0700)
commit75182a4eaaf8b697f66d68ad039f021f461dd2a4
treec62a774d22a6cbb3d435674043de0191794b5143
parent3791a22374715b36ad806db13d8b2afb1b57fd36
rcu: Add comments to final rcu_gp_cleanup() "if" statement

The final "if" statement in rcu_gp_cleanup() has proven to be rather
confusing, straightforward though it might have seemed when initially
written.  This commit therefore adds comments to its "then" and "else"
clauses to at least provide a more elevated form of confusion.

Reported-by: Boqun Feng <boqun.feng@gmail.com>
Reported-by: Frederic Weisbecker <frederic@kernel.org>
Reported-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Reported-by: Uladzislau Rezki <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c