]> git.ipfire.org Git - thirdparty/linux.git/commit
printk: nbcon: Flush new records on device_release()
authorJohn Ogness <john.ogness@linutronix.de>
Tue, 20 Aug 2024 06:29:50 +0000 (08:35 +0206)
committerPetr Mladek <pmladek@suse.com>
Wed, 21 Aug 2024 12:56:24 +0000 (14:56 +0200)
commit8ba77712a7501ca941603d6d5ed650cd0d42cafb
tree63a04026dcc0905f1ba7494ffcad606b95dd02f7
parent70411bf8d22ab3d2f794f199d81d70b62d3a85fa
printk: nbcon: Flush new records on device_release()

There may be new records that were added while a driver was
holding the nbcon context for non-printing purposes. These
new records must be flushed by the nbcon_device_release()
context because no other context will do it.

If boot consoles are registered, the legacy loop is used
(either direct or per irq_work) to handle the flushing.

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