mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
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
This commit is contained in:
@@ -82,6 +82,7 @@ void kernel_restart_prepare(char *cmd)
|
||||
{
|
||||
blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd);
|
||||
system_state = SYSTEM_RESTART;
|
||||
try_block_console_kthreads(10000);
|
||||
usermodehelper_disable();
|
||||
device_shutdown();
|
||||
}
|
||||
@@ -270,6 +271,7 @@ static void kernel_shutdown_prepare(enum system_states state)
|
||||
blocking_notifier_call_chain(&reboot_notifier_list,
|
||||
(state == SYSTEM_HALT) ? SYS_HALT : SYS_POWER_OFF, NULL);
|
||||
system_state = state;
|
||||
try_block_console_kthreads(10000);
|
||||
usermodehelper_disable();
|
||||
device_shutdown();
|
||||
}
|
||||
|
Reference in New Issue
Block a user