]> Git Repo - linux.git/commitdiff
scftorture: Add cond_resched() to test loop
authorPaul E. McKenney <[email protected]>
Thu, 23 Jul 2020 22:53:02 +0000 (15:53 -0700)
committerPaul E. McKenney <[email protected]>
Tue, 25 Aug 2020 01:38:38 +0000 (18:38 -0700)
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: Paul E. McKenney <[email protected]>
kernel/scftorture.c

index fc22bcc9a589abccd334364f773d800ca347344c..554a521ee235e80e593b32d930b0106e605ea671 100644 (file)
@@ -420,6 +420,7 @@ static int scftorture_invoker(void *arg)
                        set_cpus_allowed_ptr(current, cpumask_of(cpu));
                        was_offline = false;
                }
+               cond_resched();
        } while (!torture_must_stop());
 
        VERBOSE_SCFTORTOUT("scftorture_invoker %d ended", scfp->cpu);
This page took 0.065514 seconds and 4 git commands to generate.