From: Zygo Blaxell Date: Sun, 15 Mar 2020 03:10:12 +0000 (-0400) Subject: Revert "printk: fix exclusive_console replaying" X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a40be957d48840a6d96c895f9649b474928414c;p=linux Revert "printk: fix exclusive_console replaying" to see if it unbreaks our dmesg -wT's This reverts commit d21cc4ea7a82a97dc3876a4020209c6ab81a7615. --- diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index c0a5b56aea4e..ca65327a6de8 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -2770,6 +2770,8 @@ void register_console(struct console *newcon) * for us. */ logbuf_lock_irqsave(flags); + console_seq = syslog_seq; + console_idx = syslog_idx; /* * We're about to replay the log buffer. Only do this to the * just-registered console to avoid excessive message spam to @@ -2781,8 +2783,6 @@ void register_console(struct console *newcon) */ exclusive_console = newcon; exclusive_console_stop_seq = console_seq; - console_seq = syslog_seq; - console_idx = syslog_idx; logbuf_unlock_irqrestore(flags); } console_unlock();