projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f5d783
)
printk: wake up all waiters
author
John Ogness
<john.ogness@linutronix.de>
Thu, 21 Apr 2022 21:22:39 +0000
(23:28 +0206)
committer
Petr Mladek
<pmladek@suse.com>
Fri, 22 Apr 2022 19:30:57 +0000
(21:30 +0200)
There can be multiple tasks waiting for new records. They should
all be woken. Use wake_up_interruptible_all() instead of
wake_up_interruptible().
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link:
https://lore.kernel.org/r/20220421212250.565456-5-john.ogness@linutronix.de
kernel/printk/printk.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/printk/printk.c
b/kernel/printk/printk.c
index f817dfb4852d4f750a4b1001e45fc83f816dc1e3..e2335700264802030ee7dc5846bb6c28859b668a 100644
(file)
--- a/
kernel/printk/printk.c
+++ b/
kernel/printk/printk.c
@@
-3326,7
+3326,7
@@
static void wake_up_klogd_work_func(struct irq_work *irq_work)
}
if (pending & PRINTK_PENDING_WAKEUP)
- wake_up_interruptible(&log_wait);
+ wake_up_interruptible
_all
(&log_wait);
}
static DEFINE_PER_CPU(struct irq_work, wake_up_klogd_work) =