Re: [PATCH] printk: Do not miss new messages when replaying the log

From: Petr Mladek
Date: Wed Oct 03 2018 - 05:23:04 EST


On Thu 2018-09-13 14:34:06, Petr Mladek wrote:
> The variable "exclusive_console" is used to reply all existing messages
> on a newly registered console. It is cleared when all messages are out.
>
> The problem is that new messages might appear in the meantime. These
> are then visible only on the exclusive console.
>
> The obvious solution is to clear "exclusive_console" after we replay
> all messages that were already proceed before we started the reply.
>
> Reported-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>
> Signed-off-by: Petr Mladek <pmladek@xxxxxxxx>
> Acked-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>

JFYI, I have pushed this into printk.git, for-4.20 branch.

Best Regards,
Petr