rcu: Improve diagnostics for failed RCU grace-period start
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 11 Dec 2018 00:09:49 +0000 (16:09 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 25 Jan 2019 23:29:57 +0000 (15:29 -0800)
commitfd897573fa4cfe66ebddf5f4444f36710cf0cad0
tree5a1c085f7bcfb968f04ac023da8b049f3aeb5cb8
parenta9fefdb257259ac2f0f5fcd916edecc5c9427635
rcu: Improve diagnostics for failed RCU grace-period start

If a grace period fails to start (for example, because you commented
out the last two lines of rcu_accelerate_cbs_unlocked()), rcu_core()
will invoke rcu_check_gp_start_stall(), which will notice and complain.
However, this complaint is lacking crucial debugging information such
as when the last wakeup executed and what the value of ->gp_seq was at
that time.  This commit therefore removes the current pr_alert() from
rcu_check_gp_start_stall(), instead invoking show_rcu_gp_kthreads(),
which has been updated to print the needed information, which is collected
by rcu_gp_kthread_wake().

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/tree.c
kernel/rcu/tree.h