[PATCH 1/2] printk: Debug patch1

From: Jan Kara
Date: Wed Jun 11 2014 - 16:33:23 EST


Signed-off-by: Jan Kara <jack@xxxxxxx>
---
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


--ZJcv+A0YCCLh2VIg
Content-Type: text/x-patch; charset=us-ascii
Content-Disposition: attachment; filename="0002-printk-Debug-patch-2.patch"