summaryrefslogtreecommitdiffstats
path: root/kernel/panic.c
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2022-06-17 16:36:48 +0200
committerPetr Mladek <pmladek@suse.com>2022-06-17 16:36:48 +0200
commit38335cc5ffafa111210ad6bbe5a63a87db38ee68 (patch)
treea317e519b8a46ad7351d23719b34b27b96e4427d /kernel/panic.c
parentMerge tag 'printk-for-5.19-fixup' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
parentprintk: Wait for the global console lock when the system is going down (diff)
downloadlinux-38335cc5ffafa111210ad6bbe5a63a87db38ee68.tar.xz
linux-38335cc5ffafa111210ad6bbe5a63a87db38ee68.zip
Merge branch 'rework/kthreads' into for-linus
Diffstat (limited to 'kernel/panic.c')
-rw-r--r--kernel/panic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index a3c758dba15a..4cf13c37bd08 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -297,6 +297,7 @@ void panic(const char *fmt, ...)
* unfortunately means it may not be hardened to work in a
* panic situation.
*/
+ try_block_console_kthreads(10000);
smp_send_stop();
} else {
/*
@@ -304,6 +305,7 @@ void panic(const char *fmt, ...)
* kmsg_dump, we will need architecture dependent extra
* works in addition to stopping other CPUs.
*/
+ try_block_console_kthreads(10000);
crash_smp_send_stop();
}