Re: [PATCH] printk_legacy_map: use LD_WAIT_CONFIG instead of LD_WAIT_SLEEP
From: Oleg Nesterov
Date: Thu Oct 23 2025 - 05:29:44 EST
On 10/23, Petr Mladek wrote:
>
> Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
Thanks!
> This is much more clear. It might make sense to improve the comment,
> for example:
>
> <proposal>
> /*
> * Legacy console printing from printk() caller context does not respect
> * raw_spinlock/spinlock nesting. However, on PREEMPT_RT the printing
> * path from atomic context is always avoided and the console driver
> * is always invoked from a dedicated thread. Thus the lockdep splat
> * on !PREEMPT_RT is a false positive.
> *
> * This map is used to temporarily establish LD_WAIT_CONFIG context for the
> * console write() callback when legacy printing to avoid false positive
> * lockdep complaints, thus allowing lockdep to continue to function for
> * real issues.
> */
> </proposal>
Agreed, will do and send V2.
Oleg.