rcu: Make rcu_assign_pointer's assignment volatile and type-safe
authorJosh Triplett <josh@joshtriplett.org>
Sun, 1 Sep 2013 23:42:52 +0000 (16:42 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Dec 2013 20:19:22 +0000 (12:19 -0800)
commit9d162cd06349dfee6b4f254b3abf1355cf0aee43
tree307513abf19d6dffb78929c1c60f4a68f59d903a
parent36708b89e00951b004b4dd6c14181301e2e98354
rcu: Make rcu_assign_pointer's assignment volatile and type-safe

The rcu_assign_pointer() primitive needs to use ACCESS_ONCE to make
the assignment to the destination pointer volatile, to protect against
compilers too clever for their own good.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rcupdate.h