• Paul E. McKenney's avatar
    rcu/nocb: Unconditionally advance and wake for excessive CBs · faca5c25
    Paul E. McKenney authored
    When there are excessive numbers of callbacks, and when either the
    corresponding no-CBs callback kthread is asleep or there is no more
    ready-to-invoke callbacks, and when least one callback is pending,
    __call_rcu_nocb_wake() will advance the callbacks, but refrain from
    awakening the corresponding no-CBs grace-period kthread.  However,
    because rcu_advance_cbs_nowake() is used, it is possible (if a bit
    unlikely) that the needed advancement could not happen due to a grace
    period not being in progress.  Plus there will always be at least one
    pending callback due to one having just now been enqueued.
    
    This commit therefore attempts to advance callbacks and awakens the
    no-CBs grace-period kthread when there are excessive numbers of callbacks
    posted and when the no-CBs callback kthread is not in a position to do
    anything helpful.
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
    faca5c25
tree_plugin.h 67.5 KB