rcu: Avoid ->dynticks_nmi_nesting store tearing
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 Oct 2017 23:54:49 +0000 (16:54 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 27 Nov 2017 16:40:09 +0000 (08:40 -0800)
commit2e672ab2d491713541963afca3a5967ccc2376e9
treebb47329042e035fbda4b6e8140d51075851c3982
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
rcu: Avoid ->dynticks_nmi_nesting store tearing

NMIs can nest, and store tearing could in theory happen on carries
from one byte to the next.  This commit therefore adds the WRITE_ONCE()
macros preventing this.

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