linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] panic: call hardlockup_detector_perf_stop in panic
@ 2025-07-30  3:06 Wang Jinchao
  2025-08-19 15:01 ` Petr Mladek
  0 siblings, 1 reply; 5+ messages in thread
From: Wang Jinchao @ 2025-07-30  3:06 UTC (permalink / raw)
  To: Petr Mladek, John Ogness, Thomas Gleixner, Joel Granados,
	Dave Jiang, Josh Poimboeuf, Sravan Kumar Gundu, Ryo Takakura
  Cc: linux-kernel, Wang Jinchao, Wei Liu, Jason Gunthorpe

When a panic happens, it blocks the cpu, which may
trigger the hardlockup detector if some dump is slow.
So call hardlockup_detector_perf_stop() to disable
hardlockup dector.

Signed-off-by: Wang Jinchao <wangjinchao600@gmail.com>
---
 kernel/panic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/panic.c b/kernel/panic.c
index b0b9a8bf4560..52a1ac4ad447 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -339,6 +339,7 @@ void panic(const char *fmt, ...)
 	 */
 	local_irq_disable();
 	preempt_disable_notrace();
+	hardlockup_detector_perf_stop();
 
 	/*
 	 * It's possible to come here directly from a panic-assertion and
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-21  1:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-30  3:06 [PATCH] panic: call hardlockup_detector_perf_stop in panic Wang Jinchao
2025-08-19 15:01 ` Petr Mladek
2025-08-20  6:22   ` Jinchao Wang
2025-08-20 10:22     ` Petr Mladek
2025-08-21  1:35       ` Jinchao Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).