From 3bd16050e9c555cb7b08a4f830db95e9025336e6 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 22 May 2014 10:43:34 +1000 Subject: [PATCH] printk-release-lockbuf_lock-before-calling-console_trylock_for_printk-fix fix have_callable_console() comment Cc: Jan Kara Signed-off-by: Andrew Morton --- kernel/printk/printk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 5077c8294b41..ee7199b4259b 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1377,7 +1377,10 @@ static void zap_locks(void) sema_init(&console_sem, 1); } -/* Check if we have any console registered that can be called early in boot. */ +/* + * Check if we have any console that is capable of printing while cpu is + * booting or shutting down. Requires console_sem. + */ static int have_callable_console(void) { struct console *con; -- 2.39.5