diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-10-11 10:22:08 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 20:14:24 +0200 |
commit | 256a6b41365e17cebe5c2fc91ddff716c9aa055a (patch) | |
tree | c491008b3e2fefed6a42ac7f824d191e023fb11f /kernel/sys_ni.c | |
parent | [PATCH] fix lockdep-design.txt (diff) | |
download | linux-256a6b41365e17cebe5c2fc91ddff716c9aa055a.tar.xz linux-256a6b41365e17cebe5c2fc91ddff716c9aa055a.zip |
[PATCH] lockdep: fix printk recursion logic
Bug reported and fixed by Tilman Schmidt <tilman@imap.cc>: if lockdep is
enabled then log messages make it to /var/log/messages belatedly. The
reason is a missed wakeup of klogd.
Initially there was only a lockdep_internal() protection against lockdep
recursion within vprintk() - it grew the 'outer' lockdep_off()/on()
protection only later on. But that lockdep_off() made the
release_console_sem() within vprintk() always happen under the
lockdep_internal() condition, causing the bug.
The right solution to remove the inner protection against recursion here -
the outer one is enough.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/sys_ni.c')
0 files changed, 0 insertions, 0 deletions