]> 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)
commitd07edd8096f387628cc4a0f124d5512e157a43d1
treebdeda51aab833dc77d462e452a5dae05103a237e
parent81e1521d64991a63832f20208a10cd4663a96433
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