Skip to content

Commit b27a34f

Browse files
paulmckrcuurezki
authored andcommitted
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 <paulmck@kernel.org> Cc: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
1 parent 3b47682 commit b27a34f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/rcu/rcutorture.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ static struct rcu_torture_ops rcu_busted_ops = {
639639
.exp_sync = synchronize_rcu_busted,
640640
.call = call_rcu_busted,
641641
.irq_capable = 1,
642+
.extendables = RCUTORTURE_MAX_EXTEND,
642643
.name = "busted"
643644
};
644645

0 commit comments

Comments
 (0)