Skip to content

Commit 9c0f1c7

Browse files
committed
rcutorture: Enable limited callback-flooding tests of SRCU
This commit allows up to 50,000 callbacks worth of callback-flooding tests of SRCU. The goal of this change is to exercise Tree SRCU's ability to transition from SRCU_SIZE_SMALL to SRCU_SIZE_BIG triggered by callback-queue-time lock contention. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 6b8646a commit 9c0f1c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/rcu/rcutorture.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ static struct rcu_torture_ops srcu_ops = {
674674
.call = srcu_torture_call,
675675
.cb_barrier = srcu_torture_barrier,
676676
.stats = srcu_torture_stats,
677+
.cbflood_max = 50000,
677678
.irq_capable = 1,
678679
.no_pi_lock = IS_ENABLED(CONFIG_TINY_SRCU),
679680
.name = "srcu"
@@ -708,6 +709,7 @@ static struct rcu_torture_ops srcud_ops = {
708709
.call = srcu_torture_call,
709710
.cb_barrier = srcu_torture_barrier,
710711
.stats = srcu_torture_stats,
712+
.cbflood_max = 50000,
711713
.irq_capable = 1,
712714
.no_pi_lock = IS_ENABLED(CONFIG_TINY_SRCU),
713715
.name = "srcud"

0 commit comments

Comments
 (0)