Skip to content

Commit 1b0f583

Browse files
committed
rcutorture: Suppress "Writer stall state" reports during boot
When rcutorture is running on only the one boot-time CPU while that CPU is busy invoking initcall() functions, the added load is quite likely to unduly delay the RCU grace-period kthread, rcutorture readers, and much else besides. This can result in rcu_torture_stats_print() reporting rcutorture writer stalls, which are not really a bug in that environment. After all, one CPU can only do so much. This commit therefore suppresses rcutorture writer stalls while the kernel is booting, that is, while rcu_inkernel_boot_has_ended() continues returning false. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent b930ff8 commit 1b0f583

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

kernel/rcu/rcutorture.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2756,7 +2756,8 @@ rcu_torture_stats_print(void)
27562756
cur_ops->stats();
27572757
if (rtcv_snap == rcu_torture_current_version &&
27582758
rcu_access_pointer(rcu_torture_current) &&
2759-
!rcu_stall_is_suppressed()) {
2759+
!rcu_stall_is_suppressed() &&
2760+
rcu_inkernel_boot_has_ended()) {
27602761
int __maybe_unused flags = 0;
27612762
unsigned long __maybe_unused gp_seq = 0;
27622763

0 commit comments

Comments
 (0)