rcu: Clamp ->dynticks_nmi_nesting at eqs entry/exit
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 3 Oct 2017 15:28:04 +0000 (08:28 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 27 Nov 2017 16:40:10 +0000 (08:40 -0800)
commit6136d6e48a0138f6be5bb3427dbeb0ba07a546a4
treef8b866b269635fb9c37059ab03a860e3b5deec56
parentfd581a91ac16187625ec509414d08d37827472c4
rcu: Clamp ->dynticks_nmi_nesting at eqs entry/exit

In preparation for merging dyntick-idle irq handling into the NMI
algorithm, clamp ->dynticks_nmi_nesting value to allow for interrupts
that enter but never leave and vice versa.

It is important that the clamping happen outside of the extended quiescent
state.  Otherwise, there will be short windows where irqs and NMIs fail
to convince RCU to start watching.

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