]> www.infradead.org Git - users/dwmw2/linux.git/commit
rcu/tasks: Mark callbacks not currently participating in barrier operation
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 2 Aug 2024 00:34:24 +0000 (17:34 -0700)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Wed, 14 Aug 2024 11:19:56 +0000 (16:49 +0530)
commitd3f84aeb71d61ece24164bb2ce3161c60922fd8c
treeded226a23350d9f20cb14de67b08428a47d1a694
parent54973cdd166b13195a99940cd21a827c3a99cac2
rcu/tasks: Mark callbacks not currently participating in barrier operation

Each Tasks RCU flavor keeps a count of the number of callbacks that the
current rcu_barrier_tasks*() 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 RCU-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/tasks.h