scftorture: Fix distribution of short handler delays
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 1 Mar 2022 01:40:49 +0000 (17:40 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 12 Apr 2022 00:07:29 +0000 (17:07 -0700)
commit8106bddbab5f0ba180e6d693c7c1fc6926d57caa
treebe9cc31079ec27731d809254f5d85d9392bb4ccb
parent99d6a2acb8955f12489bfba04f2db22bc0b57726
scftorture: Fix distribution of short handler delays

The scftorture test module's scf_handler() function is supposed to provide
three different distributions of short delays (including "no delay") and
one distribution of long delays, if specified by the scftorture.longwait
module parameter.  However, the second of the two non-zero-wait short delays
is disabled due to the first such delay's "goto out" not being enclosed in
the "then" clause with the "udelay()".

This commit therefore adjusts the code to provide the intended set of
delays.

Fixes: e9d338a0b179 ("scftorture: Add smp_call_function() torture test")
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/scftorture.c