diff options
author | Kirill Korotaev | 2007-02-10 10:46:19 +0100 |
---|---|---|
committer | Linus Torvalds | 2007-02-11 19:51:34 +0100 |
commit | e3e8a75d2acfc61ebf25524666a0a2c6abb0620c (patch) | |
tree | bd3d3e57f7b9084544155ac562f4456693e25e55 /kernel/printk.c | |
parent | [PATCH] Consolidate bust_spinlocks() (diff) | |
download | kernel-qcow2-linux-e3e8a75d2acfc61ebf25524666a0a2c6abb0620c.tar.gz kernel-qcow2-linux-e3e8a75d2acfc61ebf25524666a0a2c6abb0620c.tar.xz kernel-qcow2-linux-e3e8a75d2acfc61ebf25524666a0a2c6abb0620c.zip |
[PATCH] Extract and use wake_up_klogd()
Remove hack with printing space to wake up klogd. Use explicit
wake_up_klogd().
See earlier discussion
http://groups.google.com/group/fa.linux.kernel/browse_frm/thread/75f496668409f58d/1a8f28983a51e1ff?lnk=st&q=wake_up_klogd+group%3Afa.linux.kernel&rnum=2#1a8f28983a51e1ff
Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/printk.c')
-rw-r--r-- | kernel/printk.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/kernel/printk.c b/kernel/printk.c index 3e79e18dce33..4da26b067976 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -783,6 +783,12 @@ int is_console_locked(void) return console_locked; } +void wake_up_klogd(void) +{ + if (!oops_in_progress && waitqueue_active(&log_wait)) + wake_up_interruptible(&log_wait); +} + /** * release_console_sem - unlock the console system * @@ -825,8 +831,8 @@ void release_console_sem(void) console_locked = 0; up(&console_sem); spin_unlock_irqrestore(&logbuf_lock, flags); - if (wake_klogd && !oops_in_progress && waitqueue_active(&log_wait)) - wake_up_interruptible(&log_wait); + if (wake_klogd) + wake_up_klogd(); } EXPORT_SYMBOL(release_console_sem); |