Skip to content

Commit 4ab00bd

Browse files
committed
rcutorture: Suppress boottime bad-sequence warnings
In normal production, an excessively long wait on a grace period (synchronize_rcu(), for example) at boottime is often just as bad as at any other time. In fact, given the desire for fast boot, any sort of long wait at boot is a bad idea. However, heavy rcutorture testing on large hyperthreaded systems can generate such long waits during boot as a matter of course. This commit therefore causes the rcupdate.rcu_cpu_stall_suppress_at_boot kernel boot parameter to suppress reporting of bootime bad-sequence warning due to excessively long grace-period waits. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 58c5336 commit 4ab00bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/rcu/rcutorture.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,8 @@ rcu_torture_stats_print(void)
14231423
pr_alert("%s%s ", torture_type, TORTURE_FLAG);
14241424
pr_cont("rtc: %p %s: %lu tfle: %d rta: %d rtaf: %d rtf: %d ",
14251425
rcu_torture_current,
1426-
rcu_torture_current ? "ver" : "VER",
1426+
rcu_torture_current && !rcu_stall_is_suppressed_at_boot()
1427+
? "ver" : "VER",
14271428
rcu_torture_current_version,
14281429
list_empty(&rcu_torture_freelist),
14291430
atomic_read(&n_rcu_torture_alloc),

0 commit comments

Comments
 (0)