summaryrefslogtreecommitdiffstats
path: root/kernel/printk/internal.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-06-17 14:57:42 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2022-06-17 14:57:42 -0500
commit93d17c1c8c1cc987aad378d5266d99e46efca43c (patch)
treea8cffc099e31bbdc254a492df2a3ff18445299de /kernel/printk/internal.h
parentef06e68290b2b1b674950da276d6f7724e0b9874 (diff)
parent38335cc5ffafa111210ad6bbe5a63a87db38ee68 (diff)
downloadlinux-93d17c1c8c1cc987aad378d5266d99e46efca43c.tar.bz2
Merge tag 'printk-for-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux
Pull printk fixes from Petr Mladek: "Make the global console_sem available for CPU that is handling panic() or shutdown. This is an old problem when an existing console lock owner might block console output, but it became more visible with the kthreads" * tag 'printk-for-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux: printk: Wait for the global console lock when the system is going down printk: Block console kthreads when direct printing will be required
Diffstat (limited to 'kernel/printk/internal.h')
-rw-r--r--kernel/printk/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/printk/internal.h b/kernel/printk/internal.h
index d947ca6c84f9..e7d8578860ad 100644
--- a/kernel/printk/internal.h
+++ b/kernel/printk/internal.h
@@ -20,6 +20,8 @@ enum printk_info_flags {
LOG_CONT = 8, /* text is a fragment of a continuation line */
};
+extern bool block_console_kthreads;
+
__printf(4, 0)
int vprintk_store(int facility, int level,
const struct dev_printk_info *dev_info,