]> git.baikalelectronics.ru Git - kernel.git/commit
printk: Do not miss new messages when replaying the log
authorPetr Mladek <pmladek@suse.com>
Thu, 13 Sep 2018 12:34:06 +0000 (14:34 +0200)
committerPetr Mladek <pmladek@suse.com>
Tue, 2 Oct 2018 13:11:40 +0000 (15:11 +0200)
commit3f522cd064e4374eb3a2702fb6caf3b748195a6a
treebdeda51aab833dc77d462e452a5dae05103a237e
parent7fff9a2a52ef887e015d80629c0366903c02f3ef
printk: Do not miss new messages when replaying the log

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@gmail.com>
Link: http://lkml.kernel.org/r/20180913123406.14378-1-pmladek@suse.com
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: linux-kernel@vger.kernel.org
Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/printk.c