>From bf739a5af7a73b08b3dea0491d38816f686dbf57 Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Wed, 11 Jun 2014 22:33:23 +0200 Subject: [PATCH 1/2] printk: Debug patch1 Signed-off-by: Jan Kara --- kernel/printk/printk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 5ea6b148a1a6..da94dc18b6fa 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1649,6 +1649,7 @@ asmlinkage int vprintk_emit(int facility, int level, * console_sem which would prevent anyone from printing to console */ preempt_disable(); + lockdep_off(); /* * Try to acquire and then immediately release the console semaphore. * The release will print out buffers and wake up /dev/kmsg and syslog() @@ -1656,6 +1657,7 @@ asmlinkage int vprintk_emit(int facility, int level, */ if (console_trylock_for_printk()) console_unlock(); + lockdep_on(); preempt_enable(); return printed_len; -- 1.8.1.4