rcutorture: Suppress rtort_pipe_count warnings until after stalls
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 3 Jan 2024 18:59:25 +0000 (10:59 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 14 Feb 2024 16:00:57 +0000 (08:00 -0800)
commitfd2a749d3f4f7ff0129af1a2c2685faca407ea54
tree7d24676d39d06fc42b40f8a7d48a063acb24fa25
parent67050837ec14fc20a26b237ce965c50c85a318b7
rcutorture: Suppress rtort_pipe_count warnings until after stalls

Currently, if rcu_torture_writer() sees fewer than ten grace periods
having elapsed during a call to stutter_wait() that actually waited,
the rtort_pipe_count warning is emitted.  This has worked well for
a long time.  Except that the rcutorture TREE07 scenario now does a
short-term 14-second RCU CPU stall, which can most definitely case
false-positive rtort_pipe_count warnings.

This commit therefore changes rcu_torture_writer() to compute the
full expected holdoff and stall duration, and to refuse to report any
rtort_pipe_count warnings until after all stalls have completed.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
kernel/rcu/rcutorture.c