]> Gentwo Git Trees - linux/.git/commit
printk_legacy_map: use LD_WAIT_CONFIG instead of LD_WAIT_SLEEP
authorOleg Nesterov <oleg@redhat.com>
Sun, 26 Oct 2025 15:07:26 +0000 (16:07 +0100)
committerPetr Mladek <pmladek@suse.com>
Wed, 29 Oct 2025 13:20:56 +0000 (14:20 +0100)
commit20793955835fe29a5582f68ff031fdcd35cc98ed
tree289da071586f35a2c38fcfaebe336a1be75a1e4a
parentdaeed1595b4ddf314bad8ee40b2662e03fd012dc
printk_legacy_map: use LD_WAIT_CONFIG instead of LD_WAIT_SLEEP

printk_legacy_map is used to hide lock nesting violations caused by
legacy drivers and is using the wrong override type. LD_WAIT_SLEEP is
for always sleeping lock types such as mutex_t. LD_WAIT_CONFIG is for
lock type which are sleeping while spinning on PREEMPT_RT such as
spinlock_t.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://patch.msgid.link/20251026150726.GA23223@redhat.com
[pmladek@suse.com: Fixed indentation.]
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/printk.c