• Paul E. McKenney's avatar
    rcutorture: Delay-based false positives for RCU priority boosting tests · 7b9dad7a
    Paul E. McKenney authored
    If an rcu_torture_boost() kthread determines that its grace period
    has not yet ended, it invokes rcu_torture_boost_failed() which checks
    whether enough time has elapsed for this to be considered a failure of
    RCU priority boosting, and, if so, flags the error.
    
    Unfortunately, that kthread might be preempted for some seconds between
    the time that it checks the grace period and the time that it checks the
    time.  This delay can result in a false positive, featuring a complaint
    that a particular grace period has not ended, followed by a diagnostic
    dump featuring a much later grace period.
    
    This commit avoids these false positives by rechecking for the end of
    the grace period after the time check.
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    7b9dad7a
rcutorture.c 95.2 KB