rcu: Protect uses of ->jiffies_stall with ACCESS_ONCE()
authorHimangi Saraogi <himangi774@gmail.com>
Wed, 12 Mar 2014 16:16:46 +0000 (21:46 +0530)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 29 Apr 2014 15:44:41 +0000 (08:44 -0700)
commitaf952b919bf9e2cf3c4e839359cfd033d98aa011
treeb89862c9419234d838c1de2177207c66f0735b69
parenta235c0916543d8b886405f8871dc644124c7cf78
rcu: Protect uses of ->jiffies_stall with ACCESS_ONCE()

Some of the accesses to the rcu_state structure's ->jiffies_stall
field are unprotected. This patch protects them with ACCESS_ONCE().
The following coccinelle script was used to acheive this:
/* coccinelle script to protect uses of ->jiffies_stall with ACCESS_ONCE() */
@@
identifier a;
@@
(
ACCESS_ONCE(a->jiffies_stall)
|
- a->jiffies_stall
+ ACCESS_ONCE(a->jiffies_stall)
)

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/tiny_plugin.h
This page took 0.07692 seconds and 5 git commands to generate.