printk: relieve console_lock of list synchronization duties
authorJohn Ogness <john.ogness@linutronix.de>
Wed, 16 Nov 2022 16:21:51 +0000 (17:27 +0106)
committerPetr Mladek <pmladek@suse.com>
Fri, 2 Dec 2022 10:25:02 +0000 (11:25 +0100)
commit848a9c106625b10fa74022ea853845a2b7a834f0
tree499e0e366a1f6734c2c151b3e29e0768154a3dc8
parente2b39652283685edd7e84174b10736d79063d399
printk: relieve console_lock of list synchronization duties

The console_list_lock provides synchronization for console list and
console->flags updates. All call sites that were using the console_lock
for this synchronization have either switched to use the
console_list_lock or the SRCU list iterator.

Remove console_lock usage for console list updates and console->flags
updates.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20221116162152.193147-40-john.ogness@linutronix.de
kernel/printk/printk.c