]> git.hungrycats.org Git - linux/commitdiff
Revert "printk: fix exclusive_console replaying"
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 15 Mar 2020 03:10:12 +0000 (23:10 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sun, 15 Mar 2020 03:10:12 +0000 (23:10 -0400)
to see if it unbreaks our dmesg -wT's

This reverts commit d21cc4ea7a82a97dc3876a4020209c6ab81a7615.

kernel/printk/printk.c

index c0a5b56aea4e8247a683f230deacfb731fbf6d66..ca65327a6de8cb3b9fe92867d34c6bcfd67b6bd6 100644 (file)
@@ -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();