Re: [PATCH] rcu: Fix dynticks_nmi_nesting underflow check in rcu_is_cpu_rrupt_from_idle

2021-01-05 Thread Paul E. McKenney
On Tue, Jan 05, 2021 at 02:42:32PM +0100, Peter Zijlstra wrote: > On Wed, Dec 23, 2020 at 07:12:31AM -0800, Paul E. McKenney wrote: > > On Wed, Dec 23, 2020 at 02:09:37PM +0530, Neeraj Upadhyay wrote: > > > For the smp_call_function() optimization, where callbacks can run from > > > idle context,

Re: [PATCH] rcu: Fix dynticks_nmi_nesting underflow check in rcu_is_cpu_rrupt_from_idle

2021-01-05 Thread Peter Zijlstra
On Wed, Dec 23, 2020 at 07:12:31AM -0800, Paul E. McKenney wrote: > On Wed, Dec 23, 2020 at 02:09:37PM +0530, Neeraj Upadhyay wrote: > > For the smp_call_function() optimization, where callbacks can run from > > idle context, in commit 806f04e9fd2c ("rcu: Allow for smp_call_function() > > running

Re: [PATCH] rcu: Fix dynticks_nmi_nesting underflow check in rcu_is_cpu_rrupt_from_idle

2020-12-23 Thread Paul E. McKenney
On Wed, Dec 23, 2020 at 02:09:37PM +0530, Neeraj Upadhyay wrote: > For the smp_call_function() optimization, where callbacks can run from > idle context, in commit 806f04e9fd2c ("rcu: Allow for smp_call_function() > running callbacks from idle"), an additional check is added in >

[PATCH] rcu: Fix dynticks_nmi_nesting underflow check in rcu_is_cpu_rrupt_from_idle

2020-12-23 Thread Neeraj Upadhyay
For the smp_call_function() optimization, where callbacks can run from idle context, in commit 806f04e9fd2c ("rcu: Allow for smp_call_function() running callbacks from idle"), an additional check is added in rcu_is_cpu_rrupt_from_idle(), for dynticks_nmi_nesting value being 0, for these