Tag: af952b919bf9e2cf3c4e839359cfd033d98aa011

rcu: Protect uses of ->jiffies_stall with ACCESS_ONCE()

Author: Himangi Saraogi <himangi774@gmail.com> 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: …

Continue reading