rcu: Add memory barriers for NOCB leader wakeup
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sat, 29 Apr 2017 03:11:09 +0000 (20:11 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 9 Jun 2017 01:51:59 +0000 (18:51 -0700)
commit6b5fc3a1331810db407c9e0e673dc1837afdc9d0
tree00ad3040ed3d6ece09a681ea1e531fdc2a5e4bab
parent511324e462a12ea8be1a7e5fc63a992134db80d7
rcu: Add memory barriers for NOCB leader wakeup

Wait/wakeup operations do not guarantee ordering on their own.  Instead,
either locking or memory barriers are required.  This commit therefore
adds memory barriers to wake_nocb_leader() and nocb_leader_wait().

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Krister Johansen <kjlx@templeofstupid.com>
Cc: <stable@vger.kernel.org> # 4.6.x
kernel/rcu/tree_plugin.h