diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-04-07 12:14:11 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-05-14 12:46:29 -0400 |
commit | 5228084eed8d54c426c7abde3be66daf8e1b0e57 (patch) | |
tree | 5c53c30d2f6f7627f857d6ebe002eb3eae2a48d8 /kernel/rcu/rcutorture.c | |
parent | d065eacfdb9d47010f120e9310d7fc8ef2eba272 (diff) |
torture: Check for multiple concurrent torture tests
The torture tests are designed to run in isolation, but do not enforce
this isolation. This commit therefore checks for concurrent torture
tests, and refuses to start new tests while old tests are running.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcu/rcutorture.c')
-rw-r--r-- | kernel/rcu/rcutorture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 4b7b97ff1195..7fa34f86e5ba 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c | |||
@@ -1536,7 +1536,8 @@ rcu_torture_init(void) | |||
1536 | &rcu_ops, &rcu_bh_ops, &rcu_busted_ops, &srcu_ops, &sched_ops, | 1536 | &rcu_ops, &rcu_bh_ops, &rcu_busted_ops, &srcu_ops, &sched_ops, |
1537 | }; | 1537 | }; |
1538 | 1538 | ||
1539 | torture_init_begin(torture_type, verbose, &rcutorture_runnable); | 1539 | if (!torture_init_begin(torture_type, verbose, &rcutorture_runnable)) |
1540 | return -EBUSY; | ||
1540 | 1541 | ||
1541 | /* Process args and tell the world that the torturer is on the job. */ | 1542 | /* Process args and tell the world that the torturer is on the job. */ |
1542 | for (i = 0; i < ARRAY_SIZE(torture_ops); i++) { | 1543 | for (i = 0; i < ARRAY_SIZE(torture_ops); i++) { |