From: Andrew Morton Date: Wed, 21 Oct 2015 22:04:01 +0000 (+1100) Subject: panic-release-stale-console-lock-to-always-get-the-logbuf-printed-out-fix X-Git-Tag: KARO-TX6UL-2015-11-03~14^2~4 X-Git-Url: https://git.karo-electronics.de/?p=karo-tx-linux.git;a=commitdiff_plain;h=3067e2a0516640808363163eb051de8faa84cc75 panic-release-stale-console-lock-to-always-get-the-logbuf-printed-out-fix tweak comment text Cc: "K. Y. Srinivasan" Cc: Baoquan He Cc: HATAYAMA Daisuke Cc: Jan Kara Cc: Jiri Kosina Cc: Masami Hiramatsu Cc: Prarit Bhargava Cc: Seth Jennings Cc: Vitaly Kuznetsov Cc: Xie XiuQi Signed-off-by: Andrew Morton --- diff --git a/kernel/panic.c b/kernel/panic.c index f94525f601c9..4579dbb7ed87 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -149,10 +149,10 @@ void panic(const char *fmt, ...) bust_spinlocks(0); /* - * We may have ended up killing the CPU holding the lock and still have - * some valuable data in console buffer. Try to acquire the lock and - * release it regardless of the result. The release will also print the - * buffers out. + * We may have ended up stopping the CPU holding the lock (in + * smp_send_stop()) while still having some valuable data in the console + * buffer. Try to acquire the lock then release it regardless of the + * result. The release will also print the buffers out. */ console_trylock(); console_unlock();