Message ID | 158685244710.28353.3404230640093238216.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers | show |
Series | [tip:,core/urgent] rcu: Don't acquire lock in NMI handler in rcu_nmi_enter_common() | expand |
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 550193a..2c17859 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -825,7 +825,7 @@ static __always_inline void rcu_nmi_enter_common(bool irq) rcu_cleanup_after_idle(); incby = 1; - } else if (tick_nohz_full_cpu(rdp->cpu) && + } else if (irq && tick_nohz_full_cpu(rdp->cpu) && rdp->dynticks_nmi_nesting == DYNTICK_IRQ_NONIDLE && READ_ONCE(rdp->rcu_urgent_qs) && !READ_ONCE(rdp->rcu_forced_tick)) {