rcu/nocb: Reduce ->nocb_lock contention with separate ->nocb_gp_lock
authorPaul E. McKenney <paulmck@linux.ibm.com>
Sun, 2 Jun 2019 20:41:08 +0000 (13:41 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 13 Aug 2019 21:35:49 +0000 (14:35 -0700)
commit4fd8c5f153bc41ae847b9ddb1539b34f70c18278
tree9ee82606a6959988cb925ec1404e37b66f6145a4
parent523bddd553c09a2cf051eb724bffba680424f5ec
rcu/nocb: Reduce ->nocb_lock contention with separate ->nocb_gp_lock

The sleep/wakeup of the no-CBs grace-period kthreads is synchronized
using the ->nocb_lock of the first CPU corresponding to that kthread.
This commit provides a separate ->nocb_gp_lock for this purpose, thus
reducing contention on ->nocb_lock.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/tree.h
kernel/rcu/tree_plugin.h