[GIT PULL] printk fixups for 5.19-rc3

From: Petr Mladek
Date: Fri Jun 17 2022 - 11:18:09 EST


Hi Linus,

please pull two printk fixups from

git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git tags/printk-for-5.19-rc3

=============================

- Make the global console_sem available for CPU that is handling
panic() or shutdown. It is an old problem when an existing
console lock owner might block console output. It became
more visible with the kthreads.

=============================

I am sorry for the late pull request. I wanted to give it at
least two days in linux-next.

----------------------------------------------------------------
Petr Mladek (3):
printk: Block console kthreads when direct printing will be required
printk: Wait for the global console lock when the system is going down
Merge branch 'rework/kthreads' into for-linus

include/linux/printk.h | 5 +++++
kernel/panic.c | 2 ++
kernel/printk/internal.h | 2 ++
kernel/printk/printk.c | 8 +++++++-
kernel/printk/printk_safe.c | 32 ++++++++++++++++++++++++++++++++
kernel/reboot.c | 2 ++
6 files changed, 50 insertions(+), 1 deletion(-)