]> www.infradead.org Git - users/jedix/linux-maple.git/commit
printk: Rename console_replay_all() and update context
authorSreenath Vijayan <sreenath.vijayan@sony.com>
Thu, 30 May 2024 07:45:47 +0000 (13:15 +0530)
committerPetr Mladek <pmladek@suse.com>
Mon, 3 Jun 2024 15:17:29 +0000 (17:17 +0200)
commit3d9a0a25336433d48ddca1e1f4fea25fd4a3b1d8
tree9ebb28d602a0cac9e68553601cb211457f0a5f4f
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
printk: Rename console_replay_all() and update context

Rename console_replay_all() to console_try_replay_all() to make
clear that the implementation is best effort. Also, the function
should not be called in NMI context as it takes locks, so update
the comment in code.

Fixes: 693f75b91a91 ("printk: Add function to replay kernel log on consoles")
Fixes: 1b743485e27f ("tty/sysrq: Replay kernel log messages on consoles via sysrq")
Suggested-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Shimoyashiki Taichi <taichi.shimoyashiki@sony.com>
Signed-off-by: Sreenath Vijayan <sreenath.vijayan@sony.com>
Link: https://lore.kernel.org/r/Zlguq/wU21Z8MqI4@sreenath.vijayan@sony.com
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
drivers/tty/sysrq.c
include/linux/printk.h
kernel/printk/printk.c