]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Print remote CPU's stacks in stall warnings
authorPaul E. McKenney <paul.mckenney@linaro.org>
Wed, 19 Sep 2012 23:58:38 +0000 (16:58 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 23 Oct 2012 21:55:25 +0000 (14:55 -0700)
commitad71c7e11543f2d259031f92f6b02df9ef4223d6
treef1bcf34f229b9ab62612971903ccd61d05db7aea
parent240947e4ee42c8814788b947948c00c4b1067298
rcu: Print remote CPU's stacks in stall warnings

The RCU CPU stall warnings rely on trigger_all_cpu_backtrace() to
do NMI-based dump of the stack traces of all CPUs.  Unfortunately, a
number of architectures do not implement trigger_all_cpu_backtrace(), in
which case RCU falls back to just dumping the stack of the running CPU.
This is unhelpful in the case where the running CPU has detected that
some other CPU has stalled.

This commit therefore makes the running CPU dump the stacks of the
tasks running on the stalled CPUs.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/sched.h
kernel/rcutree.c
kernel/sched/core.c