]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Flag lockless access to ->gp_flags with ACCESS_ONCE()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 9 Aug 2013 05:26:23 +0000 (22:26 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 23 Sep 2013 16:16:13 +0000 (09:16 -0700)
commit2200a8ec9792d564e444685c7d0f81f6f2e086e4
treedda4911c2001171f19cf09ed23ed652d43564114
parentac903f21dd4156f1aaad22903fd9a7d43c47a6fd
rcu: Flag lockless access to ->gp_flags with ACCESS_ONCE()

This commit applies ACCESS_ONCE() to an outside-of-lock access to
->gp_flags.  Although it is hard to imagine any sane compiler messing
this particular case up, the documentation benefits are substantial.
Plus the definition of "sane compiler" grows ever looser.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c