rcu: Suppress NMI backtraces when stall ends before dump
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sat, 13 Aug 2011 20:31:47 +0000 (13:31 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 29 Sep 2011 04:38:41 +0000 (21:38 -0700)
commit9bc8b5586f94be6391458074ecbba8827ba8ba9d
tree323804bb7180337c266f88519cea6b1f42114ead
parent037067a1b6f9a70f862f3ed9d59fe28b7cd55ac4
rcu: Suppress NMI backtraces when stall ends before dump

It is possible for an RCU CPU stall to end just as it is detected, in
which case the current code will uselessly dump all CPU's stacks.
This commit therefore checks for this condition and refrains from
sending needless NMIs.

And yes, the stall might also end just after we checked all CPUs and
tasks, but in that case we would at least have given some clue as
to which CPU/task was at fault.

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