tty: sysrq: Use printk_force_console context on __handle_sysrq
authorMarcos Paulo de Souza <mpdesouza@suse.com>
Tue, 5 Nov 2024 19:45:09 +0000 (16:45 -0300)
committerPetr Mladek <pmladek@suse.com>
Mon, 11 Nov 2024 11:53:31 +0000 (12:53 +0100)
commite3eea25e0b28ea06eb841ef1814ce7b7254f2fce
treedd55c08a533008d6cd2957e02caa2c96b48b4caf
parented76c07c6885b249ce8486dac22fb97151a83185
tty: sysrq: Use printk_force_console context on __handle_sysrq

By using the printk_force_console the loglevel workaround can be removed.
The workaround existed to always send the sysrq header message to all
consoles not matter what was the current loglevel, but it won't work for
deferred messages, since the loglevel can be restore before the message
is printed, suppressing the message that wasn't supposed to be
suppressed by the workaround.

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20241105-printk-loud-con-v2-2-bd3ecdf7b0e4@suse.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
drivers/tty/sysrq.c