rcutorture: Add flag to produce non-busy-wait task stalls
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 12 Mar 2020 00:39:12 +0000 (17:39 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 7 May 2020 17:15:28 +0000 (10:15 -0700)
commit19a8ff956c5abaaedfae23b8a951dd2d725a2171
tree4413b34e7057c90d48cab3a085e5b50b96326f2a
parentbe44ae62431196ac2a55198c0855028fff3ccfb4
rcutorture: Add flag to produce non-busy-wait task stalls

This commit aids testing of RCU task stall warning messages by adding
an rcutorture.stall_cpu_block module parameter that results in the
induced stall sleeping within the RCU read-side critical section.
Spinning with interrupts disabled is still available via the
rcutorture.stall_cpu_irqsoff module parameter, and specifying neither
of these two module parameters will spin with preemption disabled.

Note that sleeping (as opposed to preemption) results in additional
complaints from RCU at context-switch time, so yet more testing.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
kernel/rcu/rcutorture.c