From: Himangi Saraogi Date: Wed, 12 Mar 2014 16:16:46 +0000 (+0530) Subject: rcu: Protect uses of ->jiffies_stall with ACCESS_ONCE() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~26^2^2~2^2~10 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af952b919bf9e2cf3c4e839359cfd033d98aa011;p=pandora-kernel.git 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 Signed-off-by: Paul E. McKenney Reviewed-by: Josh Triplett --- Reading git-diff-tree failed