Commit 65bd77f5 authored by Paul E. McKenney's avatar Paul E. McKenney

scftorture: Add cond_resched() to test loop

Although the test loop does randomly delay, which would provide quiescent
states and so forth, it is possible for there to be a series of long
smp_call_function*() handler runtimes with no delays, which results in
softlockup and RCU CPU stall warning messages.  This commit therefore
inserts a cond_resched() into the main test loop.
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 9e66bf03
...@@ -420,6 +420,7 @@ static int scftorture_invoker(void *arg) ...@@ -420,6 +420,7 @@ static int scftorture_invoker(void *arg)
set_cpus_allowed_ptr(current, cpumask_of(cpu)); set_cpus_allowed_ptr(current, cpumask_of(cpu));
was_offline = false; was_offline = false;
} }
cond_resched();
} while (!torture_must_stop()); } while (!torture_must_stop());
VERBOSE_SCFTORTOUT("scftorture_invoker %d ended", scfp->cpu); VERBOSE_SCFTORTOUT("scftorture_invoker %d ended", scfp->cpu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment