rcutorture: Abstract torture_shutdown_notify()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 30 Jan 2014 23:37:19 +0000 (15:37 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 23 Feb 2014 17:01:11 +0000 (09:01 -0800)
commit4622b487ecf0094401ac10e504606e5cbdea5a6e
treed3548e9eca81a35029cf889ed4713743f08be4c8
parent3c626237eb359cf125051f2fe8b419ddae0f5291
rcutorture: Abstract torture_shutdown_notify()

Because handling the race between rmmod and system shutdown is not
specific to RCU, this commit abstracts torture_shutdown_notify(),
placing this code into kernel/torture.c.  This change also allows
fullstop_mutex to be private to kernel/torture.c.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
include/linux/torture.h
kernel/rcu/rcutorture.c
kernel/torture.c