• Paul E. McKenney's avatar
    rcu-tasks: Make Tasks RCU wait idly for grace-period delays · c342b42f
    Paul E. McKenney authored
    Currently, all waits for grace periods sleep at TASK_UNINTERRUPTIBLE,
    regardless of RCU flavor.  This has worked well, but there have been
    cases where a longer-than-average Tasks RCU grace period has triggered
    softlockup splats, many of them, before the Tasks RCU CPU stall warning
    appears.  These softlockup splats unnecessarily consume console bandwidth
    and complicate diagnosis of the underlying problem.  Plus a long but not
    pathologically long Tasks RCU grace period might trigger a few softlockup
    splats before completing normally, which generates noise for no good
    reason.
    
    This commit therefore causes Tasks RCU grace periods to sleep at TASK_IDLE
    priority.  If there really is a persistent problem, the eventual Tasks
    RCU CPU stall warning will flag it, and without the extra noise.
    Reported-by: default avatarBreno Leitao <leitao@debian.org>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    Signed-off-by: default avatarUladzislau Rezki (Sony) <urezki@gmail.com>
    c342b42f
update.c 20.2 KB