rcutorture: Ignore attempts to test preemption and forward progress
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 6 Nov 2024 20:19:35 +0000 (12:19 -0800)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Sat, 14 Dec 2024 16:05:03 +0000 (17:05 +0100)
commita2ab1e457897f4fc8ff23f7ead92ee2b29655c04
tree705d027be249c17cb2aa64ef88d905a587affccc
parentec9d6356bfda69abe5f4767dd56c964127913233
rcutorture: Ignore attempts to test preemption and forward progress

Use of the rcutorture preempt_duration and the default-on fwd_progress
kernel parameters can result in preemption of callback processing during
forward-progress testing, which is an excellent way to OOM your test
if your kernel offloads RCU callbacks.  This commit therefore treats
preempt_duration in the same way as stall_cpu in CONFIG_RCU_NOCB_CPU=y
kernels, prohibiting fwd_progress testing and splatting when rcutorture
is built in (as opposed to being a loadable module).

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
kernel/rcu/rcutorture.c