rcutorture: Abstract torture_shutdown_absorb()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 29 Jan 2014 15:40:27 +0000 (07:40 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 23 Feb 2014 17:01:04 +0000 (09:01 -0800)
commitf67a33561e6e5463b548219df98130da95f2e4a7
tree6cdbf7152900045acb4f0f9d5426f995adf0ba66
parentc2884de38e01134ae040d55aa5644049d1bb850f
rcutorture: Abstract torture_shutdown_absorb()

Because handling races between rmmod and normal shutdown is not specific
to rcutorture, this commit renames rcutorture_shutdown_absorb() to
torture_shutdown_absorb() and pulls it out into then kernel/torture.c
module.  This implies pulling the fullstop mechanism into kernel/torture.c
as well.

The exporting of fullstop and fullstop_mutex is ugly and must die.
And it does in fact die in later commits that introduce higher-level
APIs that encapsulate both of these variables.

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