Skip to content

Commit 5e7de58

Browse files
committed
Merge tag 'core-urgent-2020-04-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull RCU fix from Thomas Gleixner: "A single bugfix for RCU to prevent taking a lock in NMI context" * tag 'core-urgent-2020-04-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: rcu: Don't acquire lock in NMI handler in rcu_nmi_enter_common()
2 parents 439f1da + 40e7d7b commit 5e7de58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/rcu/tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ static __always_inline void rcu_nmi_enter_common(bool irq)
825825
rcu_cleanup_after_idle();
826826

827827
incby = 1;
828-
} else if (tick_nohz_full_cpu(rdp->cpu) &&
828+
} else if (irq && tick_nohz_full_cpu(rdp->cpu) &&
829829
rdp->dynticks_nmi_nesting == DYNTICK_IRQ_NONIDLE &&
830830
READ_ONCE(rdp->rcu_urgent_qs) &&
831831
!READ_ONCE(rdp->rcu_forced_tick)) {

0 commit comments

Comments
 (0)