Skip to content

Commit 938ba40

Browse files
jognesspmladek
authored andcommitted
printk: wake up all waiters
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
1 parent 1f5d783 commit 938ba40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/printk/printk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3326,7 +3326,7 @@ static void wake_up_klogd_work_func(struct irq_work *irq_work)
33263326
}
33273327

33283328
if (pending & PRINTK_PENDING_WAKEUP)
3329-
wake_up_interruptible(&log_wait);
3329+
wake_up_interruptible_all(&log_wait);
33303330
}
33313331

33323332
static DEFINE_PER_CPU(struct irq_work, wake_up_klogd_work) =

0 commit comments

Comments
 (0)