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)
commit5bef8da66a9c45d3c371d74463894f1fc31dfdda
treefdd98ef7a6de9fa86d7d41ee23adb3a4a2fa6edc
parent2beaf3280e57bb891f8012dca49c87ed0f01e2f3
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