]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commitf92b070f2dc89a8ff1a0cc8b608e20abef894c7d
treebdeda51aab833dc77d462e452a5dae05103a237e
parenta06b0c82a049d34d4dc273e8692ed0894458c468
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