OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jul 2017 05:42:22 +0000 (07:42 +0200)
commitac5e9e801f47311bdbd1dc490a1b90df676b815c
tree0c95949cec92c0ce719a9733b01baab7f9587fd7
parent63c634cf95475ef86cdf15eaef5abeb5888689ab
rcu: Add memory barriers for NOCB leader wakeup

commit 6b5fc3a1331810db407c9e0e673dc1837afdc9d0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/rcu/tree_plugin.h