srcu: Mark callbacks not currently participating in barrier operation
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 2 Aug 2024 00:36:22 +0000 (17:36 -0700)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Mon, 12 Aug 2024 18:21:35 +0000 (23:51 +0530)
commite53cef031bfac2369d249cfd726706c30a5a3351
tree87f0898be80a0d53adc7b5b9eb1b9f81d31206cb
parentc8c3ae83e0bbed6d56a00068c7d10ebf64db48d9
srcu: Mark callbacks not currently participating in barrier operation

SRCU keeps a count of the number of callbacks that the current
srcu_barrier() is waiting on, but there is currently no easy way to
work out which callback is stuck.  One way to do this is to mark idle
SRCU-barrier callbacks by making the ->next pointer point to the callback
itself, and this commit does just that.

Later commits will use this for debug output.

Signed-off-by: "Paul E. McKenney" <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
kernel/rcu/srcutree.c