]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Add per-task state to RCU CPU stall warnings
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 12 Mar 2020 00:35:46 +0000 (17:35 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Apr 2020 18:03:50 +0000 (11:03 -0700)
commitff6039f3b370438e231918bf224931df60ff6977
treefdd98ef7a6de9fa86d7d41ee23adb3a4a2fa6edc
parente59fb24120b72b2e28d6d377204becc791c94eaa
rcu: Add per-task state to RCU CPU stall warnings

Currently, an RCU-preempt CPU stall warning simply lists the PIDs of
those tasks holding up the current grace period.  This can be helpful,
but more can be even more helpful.

To this end, this commit adds the nesting level, whether the task
thinks it was preempted in its current RCU read-side critical section,
whether RCU core has asked this task for a quiescent state, whether the
expedited-grace-period hint is set, and whether the task believes that
it is on the blocked-tasks list (it must be, or it would not be printed,
but if things are broken, best not to take too much for granted).

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_stall.h