rcu: Convert rnp->lock wrappers to macros for SRCU use
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 9 May 2017 19:05:46 +0000 (12:05 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 9 Jun 2017 01:52:37 +0000 (18:52 -0700)
commitbf32c76540257f9f5f2cf661dbdd8bb4a4bd8c82
treeb18a1c7394024abc97c2d778125e9c471b7fce1e
parent5f192ab027a5d865be24c817005d42eb96314dc2
rcu: Convert rnp->lock wrappers to macros for SRCU use

Use of smp_mb__after_unlock_lock() would allow SRCU to omit a full
memory barrier during callback execution, so this commit converts
raw_spin_lock_rcu_node() from inline functions to type-generic macros
to allow them to handle locks in srcu_node structures as well as
rcu_node structures.

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