diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-01-30 18:37:19 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-23 12:01:11 -0500 |
commit | 4622b487ecf0094401ac10e504606e5cbdea5a6e (patch) | |
tree | d3548e9eca81a35029cf889ed4713743f08be4c8 /include/linux/torture.h | |
parent | 3c626237eb359cf125051f2fe8b419ddae0f5291 (diff) |
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>
Diffstat (limited to 'include/linux/torture.h')
-rw-r--r-- | include/linux/torture.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/torture.h b/include/linux/torture.h index 31d69930e5cf..742d8a402f19 100644 --- a/include/linux/torture.h +++ b/include/linux/torture.h | |||
@@ -46,8 +46,6 @@ | |||
46 | #define FULLSTOP_SHUTDOWN 1 /* System shutdown with rcutorture running. */ | 46 | #define FULLSTOP_SHUTDOWN 1 /* System shutdown with rcutorture running. */ |
47 | #define FULLSTOP_RMMOD 2 /* Normal rmmod of rcutorture. */ | 47 | #define FULLSTOP_RMMOD 2 /* Normal rmmod of rcutorture. */ |
48 | extern int fullstop; | 48 | extern int fullstop; |
49 | /* Protect fullstop transitions and spawning of kthreads. */ | ||
50 | extern struct mutex fullstop_mutex; | ||
51 | 49 | ||
52 | #define TORTURE_FLAG "-torture:" | 50 | #define TORTURE_FLAG "-torture:" |
53 | #define TOROUT_STRING(s) \ | 51 | #define TOROUT_STRING(s) \ |