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 <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1f5d783 commit 938ba40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)