panic-use-panic_try_start-in-nmi_panic.patch removed from -mm tree
The quilt patch titled
Subject: panic: use panic_try_start() in nmi_panic()
has been removed from the -mm tree. Its filename was
panic-use-panic_try_start-in-nmi_panic.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Jinchao Wang <[email protected]>
Subject: panic: use panic_try_start() in nmi_panic()
Date: Mon, 25 Aug 2025 10:29:32 +0800
nmi_panic() duplicated the logic to claim panic_cpu with atomic_try_cmpxchg. This is already wrapped in panic_try_start().
Replace the open-coded logic with panic_try_start(), and use panic_on_other_cpu() for the fallback path.
This removes duplication and keeps panic handling code consistent.
---
kernel/panic.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
kernel/panic.c renamed from kernel/panic.c~panic-use-panic_try_start-in-nmi_panic +2 -8
@@ -360,15 +360,9 @@ EXPORT_SYMBOL(panic_on_other_cpu);*/ void nmi_panic (struct pt_regs *regs,const char *msg) { -int old_cpu, this_cpu; - - old_cpu =PANIC_CPU_INVALID ; - this_cpu =raw_smp_processor_id (); - -/* atomic_try_cmpxchg updates old_cpu on failure */ -if (atomic_try_cmpxchg (&panic_cpu, &old_cpu, this_cpu)) +if (panic_try_start ())panic ("%s" , msg); -else if (old_cpu != this_cpu) +else if (panic_on_other_cpu ())nmi_panic_self_stop (regs); }EXPORT_SYMBOL (nmi_panic);
_
Patches currently in -mm which might be from [email protected] are