]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5524cb3f5550d94bb77dc0942a0487382b8c50e8
tree4413b34e7057c90d48cab3a085e5b50b96326f2a
parent372e949e4793ab4cf920df646fc7bdb57176001a
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