OSDN Git Service

rcu: Protect uses of jiffies_stall field with ACCESS_ONCE()
authorIulia Manda <iulia.manda21@gmail.com>
Tue, 11 Mar 2014 13:22:28 +0000 (15:22 +0200)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 29 Apr 2014 15:43:45 +0000 (08:43 -0700)
commit4fc5b75537d4f56577ad00355b4cd09627deb3c3
tree08b95f7d425cd0f610dd545fbe8fbea282a7f87f
parent9b67122ae3da3018c966148233739116ed89502a
rcu: Protect uses of jiffies_stall field with ACCESS_ONCE()

Some of the uses of the rcu_state structure's ->jiffies_stall field
do not use ACCESS_ONCE(), despite there being unprotected accesses.
This commit therefore uses the ACCESS_ONCE() macro to protect this field.

Signed-off-by: Iulia Manda <iulia.manda21@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/tree.c