]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Account for nocb-CPU callback counts in RCU CPU stall warnings
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 2 Oct 2018 23:05:46 +0000 (16:05 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Sat, 1 Dec 2018 20:45:37 +0000 (12:45 -0800)
commit903ee83d91776bc72d856147743687d4b6c99286
treedf3216d4cc5154d397a4acbcbe6d04ddb4ae32b4
parente0aff97355575ac6a28a48a4217533a3953095c5
rcu: Account for nocb-CPU callback counts in RCU CPU stall warnings

The RCU CPU stall warnings print an estimate of the total number of
RCU callbacks queued in the system, but this estimate leaves out
the callbacks queued for nocbs CPUs.  This commit therefore introduces
rcu_get_n_cbs_cpu(), which gives an accurate callback estimate for
both nocbs and normal CPUs, and uses this new function as needed.

This commit also introduces a rcu_get_n_cbs_nocb_cpu() helper function
that returns the number of callbacks for nocbs CPUs or zero otherwise,
and also uses this function in place of direct access to ->nocb_q_count
while in the area (fewer characters, you see).

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