scftorture: Add cond_resched() to test loop
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 23 Jul 2020 22:53:02 +0000 (15:53 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 25 Aug 2020 01:38:38 +0000 (18:38 -0700)
commit65bd77f554336407f5fd7ced7a6df686767fba21
tree439a1b46519f76e6ef8f17aa0ae18ba2e6d708f7
parent9e66bf03f9c538863e614a72c5799bcd9579630e
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: Paul E. McKenney <paulmck@kernel.org>
kernel/scftorture.c