]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lockdep: Mark emergency sections in lockdep splats
authorJohn Ogness <john.ogness@linutronix.de>
Tue, 20 Aug 2024 06:30:01 +0000 (08:36 +0206)
committerPetr Mladek <pmladek@suse.com>
Wed, 21 Aug 2024 13:03:04 +0000 (15:03 +0200)
commit59cd94ef80094857f0d0085daa2e32badc4cddf4
tree80202e17d6e022aedbda05771c5936b2a74b6a44
parent8c03273a509c88b12c53a9ddf07702f83983e4de
lockdep: Mark emergency sections in lockdep splats

Mark emergency sections wherever multiple lines of
lock debugging output are generated. In an emergency
section, every printk() call will attempt to directly
flush to the consoles using the EMERGENCY priority.

Note that debug_show_all_locks() and
lockdep_print_held_locks() rely on their callers to
enter the emergency section. This is because these
functions can also be called in non-emergency
situations (such as sysrq).

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