rcu: Add ACCESS_ONCE() to ->n_force_qs_lh accesses
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 3 Dec 2013 17:24:02 +0000 (09:24 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 17 Feb 2014 23:01:10 +0000 (15:01 -0800)
commit3660c2813fb6d0ba48ee44bcbf9feddf7218c11d
treedb632e8ff7302aae520dfab42e6b2fce4615fb7f
parent6d0abeca3242a88cab8232e4acd7e2bf088f3bc2
rcu: Add ACCESS_ONCE() to ->n_force_qs_lh accesses

The ->n_force_qs_lh field is accessed without the benefit of any
synchronization, so this commit adds the needed ACCESS_ONCE() wrappers.
Yes, increments to ->n_force_qs_lh can be lost, but contention should
be low and the field is strictly statistical in nature, so this is not
a problem.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/tree.c
kernel/rcu/tree_trace.c