Re: [PATCH printk v3 05/15] printk: wake waiters for safe and NMI contexts

From: Petr Mladek
Date: Wed Apr 20 2022 - 09:55:34 EST


On Wed 2022-04-20 01:52:27, John Ogness wrote:
> When printk() is called from safe or NMI contexts, it will directly
> store the record (vprintk_store()) and then defer the console output.
> However, defer_console_output() only causes console printing and does
> not wake any waiters of new records.
>
> Wake waiters from defer_console_output() so that they also are aware
> of the new records from safe and NMI contexts.
>
> Fixes: 03fc7f9c99c1 ("printk/nmi: Prevent deadlock when accessing the main log buffer in NMI")
> Signed-off-by: John Ogness <john.ogness@xxxxxxxxxxxxx>

Another great catch!

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>

Best Regards,
Petr