From: Paul E. McKenney Date: Tue, 29 Oct 2024 16:47:11 +0000 (-0700) Subject: rcutorture: Add full read-side contexts to "busted" torture type X-Git-Tag: v6.14-rc1~178^2^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b27a34f908c7c2424483e50c13894414bb169aad;p=thirdparty%2Flinux.git rcutorture: Add full read-side contexts to "busted" torture type The purpose of the "busted" torture type is to test rcutorture code paths used only when a too-short grace period is detected. Currently, "busted" only uses normal rcu_read_lock()-style readers, which fails to exercise much of the "Failure/close-call rcutorture reader segments" functionality. This commit therefore sets the .extendables field of rcu_busted_ops to RCUTORTURE_MAX_EXTEND in order to more fully exercise the reporting. Signed-off-by: Paul E. McKenney Cc: Frederic Weisbecker Signed-off-by: Uladzislau Rezki (Sony) --- diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 61b092a3dc3f3..81b3743f81dca 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -639,6 +639,7 @@ static struct rcu_torture_ops rcu_busted_ops = { .exp_sync = synchronize_rcu_busted, .call = call_rcu_busted, .irq_capable = 1, + .extendables = RCUTORTURE_MAX_EXTEND, .name = "busted" };