Skip to content
Commit 523bddd5 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu/nocb: Reduce contention at no-CBs invocation-done time



Currently, nocb_cb_wait() unconditionally acquires the leaf rcu_node
->lock to advance callbacks when done invoking the previous batch.
It does this while holding ->nocb_lock, which means that contention on
the leaf rcu_node ->lock visits itself on the ->nocb_lock.  This commit
therefore makes this lock acquisition conditional, forgoing callback
advancement when the leaf rcu_node ->lock is not immediately available.
(In this case, the no-CBs grace-period kthread will eventually do any
needed callback advancement.)

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent 6608c3a0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment