Re: [PATCH printk v2 4/4] printk: Ignore waiter on panic

From: John Ogness
Date: Mon Oct 23 2023 - 05:16:38 EST


On 2023-10-18, Petr Mladek <pmladek@xxxxxxxx> wrote:
> Well, I have spent some time thinking about possible scenarios and I would
> go even further. I would block also console_lock_spinning_enable()
> Also I would do the checks before taking console_owner_lock.
>
> It would make the behavior symmetric. And more importantly, it would prevent
> possible deadlocks caused by console_owner_lock.
>
> See the proposed patch below. I created it to see the changes in the
> code. Also I added info about possible scenarios and effects.

Reviewed-by: John Ogness <john.ogness@xxxxxxxxxxxxx>

I will use your patch for the next version of this series.

John