Revert "printk: lock/unlock console only for new logbuf entries"
authorJohn Ogness <john.ogness@linutronix.de>
Thu, 9 Jul 2020 13:23:43 +0000 (15:29 +0206)
committerPetr Mladek <pmladek@suse.com>
Fri, 10 Jul 2020 06:48:35 +0000 (08:48 +0200)
commit8749efc0c0c325bf0c948c0b11d77bd3e497ead5
tree66a886d297163600eed9b783391ee2e5a190c955
parentb6cf8b3f3312e2ffe38f23c7c692eb9389277a9a
Revert "printk: lock/unlock console only for new logbuf entries"

This reverts commit 3ac37a93fa9217e576bebfd4ba3e80edaaeb2289.

This optimization will not apply once the transition to a lockless
printk is complete. Rather than porting this optimization through
the transition only to remove it anyway, just revert it now to
simplify the transition.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20200709132344.760-4-john.ogness@linutronix.de
kernel/printk/printk.c