Skip to content
Commit 3d9a0a25 authored by Sreenath Vijayan's avatar Sreenath Vijayan Committed by Petr Mladek
Browse files

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: 693f75b9 ("printk: Add function to replay kernel log on consoles")
Fixes: 1b743485

 ("tty/sysrq: Replay kernel log messages on consoles via sysrq")
Suggested-by: default avatarPetr Mladek <pmladek@suse.com>
Signed-off-by: default avatarShimoyashiki Taichi <taichi.shimoyashiki@sony.com>
Signed-off-by: default avatarSreenath Vijayan <sreenath.vijayan@sony.com>
Link: https://lore.kernel.org/r/Zlguq/wU21Z8MqI4@sreenath.vijayan@sony.com
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent 1613e604
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment