]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/printk: do not turn off bootconsole in printk_late_init() if keep_bootcon
authorNishanth Aravamudan <nacc@us.ibm.com>
Thu, 25 Aug 2011 22:59:11 +0000 (15:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Aug 2011 23:25:34 +0000 (16:25 -0700)
commitd21f9b217d330265e8d3b864c79752152577b0b6
tree0f8801e2449a37c1e4ac78588c474b3327a7c430
parent4a85110c3e491019f9017c3ca51cadacab3ff331
kernel/printk: do not turn off bootconsole in printk_late_init() if keep_bootcon

It seems that 0f068deac1f9 ("console: allow to retain boot console via
boot option keep_bootcon") doesn't always achieve what it aims, as when
printk_late_init() runs it unconditionally turns off all boot consoles.
With this patch, I am able to see more messages on the boot console in
KVM guests than I can without, when keep_bootcon is specified.

I think it is appropriate for the relevant -stable trees.  However, it's
more of an annoyance than a serious bug (ideally you don't need to keep
the boot console around as console handover should be working -- I was
encountering a situation where the console handover wasn't working and
not having the boot console available meant I couldn't see why).

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Greg KH <gregkh@suse.de>
Acked-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Cc: <stable@kernel.org> [2.6.39.x, 3.0.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/printk.c