panic: Mark emergency section in oops
authorJohn Ogness <john.ogness@linutronix.de>
Tue, 20 Aug 2024 06:29:59 +0000 (08:35 +0206)
committerPetr Mladek <pmladek@suse.com>
Wed, 21 Aug 2024 13:03:04 +0000 (15:03 +0200)
commit4bdfa0d8e920c391e6cc0aa1feef8ed91d81f724
tree67a4f5bd065f849047199a5f725a3893f6dc2d07
parent4833794db61c8cc4de4563a2754c7aedaffbb684
panic: Mark emergency section in oops

Mark an emergency section beginning with oops_enter() until the
end of oops_exit(). In this section, every printk() call will
attempt to directly flush to the consoles using the EMERGENCY
priority.

The very end of oops_exit() performs a kmsg_dump(). This is not
included in the emergency section because it is another
flushing mechanism that should occur after the consoles have
flushed the oops messages.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240820063001.36405-34-john.ogness@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/panic.c