• Paul E. McKenney's avatar
    rcutorture: Suppress rtort_pipe_count warnings until after stalls · fd2a749d
    Paul E. McKenney authored
    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: default avatarPaul E. McKenney <paulmck@kernel.org>
    Cc: Frederic Weisbecker <frederic@kernel.org>
    Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
    fd2a749d
rcutorture.c 123 KB