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

Petr Mladek
2022-04-20T13:55:34Z

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@linutronix.de>

Another great catch!

Reviewed-by: Petr Mladek <pmladek@suse.com>

Best Regards,
Petr