[PATCH 1/2] printk: Debug patch1
Jan Kara <[email protected]>
| Newsgroups | gmane.comp.file-systems.jfs.general,gmane.linux.file-systems,gmane.comp.file-systems.reiserfs.general,gmane.linux.cluster.redhat.cluster.devel,gmane.comp.file-systems.ext4,gmane.comp.file-systems.ocfs2.devel |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Jan Kara <[email protected]> --- kernel/printk/printk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index ea2d5f6962ed..a39f4129f848 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1718,7 +1718,6 @@ asmlinkage int vprintk_emit(int facility, int level, logbuf_cpu = UINT_MAX; raw_spin_unlock(&logbuf_lock); - lockdep_on(); local_irq_restore(flags); /* If called from the scheduler, we can not call up(). */ @@ -1738,6 +1737,9 @@ asmlinkage int vprintk_emit(int facility, int level, if (console_trylock_for_printk()) console_unlock(); preempt_enable(); + local_irq_save(flags); + lockdep_on(); + local_irq_restore(flags); return printed_len; } -- 1.8.1.4 ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk