rcu: using ACCESS_ONCE() to observe the jiffies_stall/rnp->qsmask value
authorDongdong Deng <dongdong.deng@windriver.com>
Tue, 28 Sep 2010 08:32:43 +0000 (16:32 +0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 7 Oct 2010 17:41:06 +0000 (10:41 -0700)
commit4ee0a603926cad973e4d384f48c5e279a0fd4118
treeda507192551987d4841fccc541a5b94adfef4f01
parentb0a0f667a349247bd7f05f806b662a25653822bc
rcu: using ACCESS_ONCE() to observe the jiffies_stall/rnp->qsmask value

Using ACCESS_ONCE() to observe the jiffies_stall/rnp->qsmask value
due to the caller didn't hold the root_rcu/rnp node's lock.  Although
use without ACCESS_ONCE() is safe due to the value loaded being used
but once, the ACCESS_ONCE() is a good documentation aid -- the variables
are being loaded without the services of a lock.

Signed-off-by: Dongdong Deng <dongdong.deng@windriver.com>
CC: Dipankar Sarma <dipankar@in.ibm.com>
CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c