mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] srcutree: Skip torture to-big transition for atomic SRCU
@ 2026-09-10  4:14 Kunwu Chan
  2026-09-10 14:33 ` kernel test robot
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Kunwu Chan @ 2026-09-10  4:14 UTC (permalink / raw)
  To: jiangshanlai, paulmck, josh, rostedt, mathieu.desnoyers
  Cc: rcu, linux-kernel, Kunwu Chan

Atomic SRCU does not use the srcu_node combining tree.  Exclude it
from the SRCU_SIZING_IS_TORTURE() transition in
srcu_torture_stats_print().

Signed-off-by: Kunwu Chan <kunwu.chan@gmail.com>
---
 kernel/rcu/srcutree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c
index d462102c6bb6..99d11fb4123a 100644
--- a/kernel/rcu/srcutree.c
+++ b/kernel/rcu/srcutree.c
@@ -2421,7 +2421,7 @@ void srcu_torture_stats_print(struct srcu_struct *ssp, char *tt, char *tf)
 		}
 		pr_cont(" T(%ld,%ld)\n", s0, s1);
 	}
-	if (SRCU_SIZING_IS_TORTURE())
+	if (SRCU_SIZING_IS_TORTURE() && ssp->srcu_reader_flavor != SRCU_READ_FLAVOR_ATOMIC)
 		srcu_transition_to_big(ssp);
 }
 EXPORT_SYMBOL_GPL(srcu_torture_stats_print);
-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-09-11  4:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-10  4:14 [PATCH] srcutree: Skip torture to-big transition for atomic SRCU Kunwu Chan
2026-09-10 14:33 ` kernel test robot
2026-09-10 14:34 ` kernel test robot
2026-09-10 16:54   ` Paul E. McKenney
2026-09-10 16:53 ` Paul E. McKenney
2026-09-11  2:12   ` KunWu Chan
2026-09-11  4:07     ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®