rcu: Avoid ->dynticks_nesting store tearing
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 5 Oct 2017 22:03:10 +0000 (15:03 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 28 Nov 2017 23:51:20 +0000 (15:51 -0800)
commit2342172fd6c148506456862d795c7f155baf6797
treecd9d468341bd806b71b7d4c7c80ceab84e87ed56
parent914955e18ca09fc404d7fc3614bb04c96a03692c
rcu: Avoid ->dynticks_nesting store tearing

Although ->dynticks_nesting is updated only by process level, it is
accessed from hardirq to check for interrupt-from-idle quiescent states.
Store tearing is thus possible, so this commit applies WRITE_ONCE()
to ->dynticks_nesting stores.

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