mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Reviewed-by: Josh Triplett <[email protected]>
This commit is contained in:
parent
d065eacfdb
commit
5228084eed
4 changed files with 16 additions and 5 deletions
|
|
@ -1536,7 +1536,8 @@ rcu_torture_init(void)
|
|||
&rcu_ops, &rcu_bh_ops, &rcu_busted_ops, &srcu_ops, &sched_ops,
|
||||
};
|
||||
|
||||
torture_init_begin(torture_type, verbose, &rcutorture_runnable);
|
||||
if (!torture_init_begin(torture_type, verbose, &rcutorture_runnable))
|
||||
return -EBUSY;
|
||||
|
||||
/* Process args and tell the world that the torturer is on the job. */
|
||||
for (i = 0; i < ARRAY_SIZE(torture_ops); i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue