rcu: fix rcutorture behavior during reboot
commit343e9099c8152daff20e10d6269edec21da44fc0
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 16 Dec 2008 00:13:07 +0000 (15 16:13 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 16 Dec 2008 23:04:40 +0000 (17 00:04 +0100)
tree1d82d5b90d0c83ab4a5240d0c3c3c74b4e19e227
parent29cbda77a67cf263d636feea65d3bbc9c7de2e24
rcu: fix rcutorture behavior during reboot

Impact: fix very rare reboot hang

Because rcutorture ignored all signals, it does not terminate in
response to the signals sent at shutdown time.  This can cause strange
failures due to its continuing to make use of kernel function too late
in the shutdown sequence.  This patch therefore adds a shutdown notifier
to rcutorture, causing it to shut down in response to a reboot or an
orderly shutdown.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/rcutorture.c