Message ID | 20210806224751.111394551@goodmis.org |
---|---|
State | New |
Headers | show |
Series | Linux 5.10.56-rt49-rc1 | expand |
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index f56fd2e34cc7..53d90278494b 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -3545,7 +3545,9 @@ bool pr_flush(int timeout_ms, bool reset_on_progress) u64 diff; u64 seq; - may_sleep = (preemptible() && !in_softirq()); + may_sleep = (preemptible() && + !in_softirq() && + system_state >= SYSTEM_RUNNING); seq = prb_next_seq(prb);