• Paul E. McKenney's avatar
    rcu: Improve diagnostics for failed RCU grace-period start · fd897573
    Paul E. McKenney authored
    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: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
    fd897573
tree.h 18.9 KB