diff options
author | Himangi Saraogi <[email protected]> | 2014-03-12 21:46:46 +0530 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2014-04-29 08:44:41 -0700 |
commit | af952b919bf9e2cf3c4e839359cfd033d98aa011 (patch) | |
tree | b89862c9419234d838c1de2177207c66f0735b69 /fs/jbd2/commit.c | |
parent | a235c0916543d8b886405f8871dc644124c7cf78 (diff) |
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 <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions