srcu: Improve comments about acceleration leak
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Wed, 27 Dec 2023 17:47:38 +0000 (12:47 -0500)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 14 Feb 2024 16:00:57 +0000 (08:00 -0800)
commit67050837ec14fc20a26b237ce965c50c85a318b7
tree116e7a7443eea0d904dd0e8a29e6fed6906970a6
parent7f66f099de4dc4b1a66a3f94e6db16409924a6f8
srcu: Improve comments about acceleration leak

The comments added in commit 1ef990c4b36b ("srcu: No need to
advance/accelerate if no callback enqueued") are a bit confusing.
The comments are describing a scenario for code that was moved and is
no longer the way it was (snapshot after advancing). Improve the code
comments to reflect this and also document why acceleration can never
fail.

Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Neeraj Upadhyay <neeraj.iitr10@gmail.com>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
kernel/rcu/srcutree.c