srcu: Use rnp->lock wrappers to replace explicit memory barriers
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 9 May 2017 22:00:14 +0000 (15:00 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 9 Jun 2017 01:52:38 +0000 (18:52 -0700)
commita3883df3935e10caa8297719d85fa8eaff7cabbd
treebb1b5f203486db00409ff343463408a94adaab45
parent83d40bd3bc3ab3d6b5a4a331f7667d627948a099
srcu: Use rnp->lock wrappers to replace explicit memory barriers

This commit uses TREE RCU's rnp->lock wrappers to replace a few explicit
memory barriers.  This change also has the advantage of making SRCU's
memory-ordering properties be implemented in roughly the same way as they
are in Tree RCU.

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