Re: [PATCH 5.10-rt] printk: ignore that console preempted by irq/softirq
From: John Ogness
Date: Mon Jun 03 2024 - 16:11:47 EST
On 2024-05-28, Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> wrote:
> There is a `may_sleep` variable set earlier. Couldn't that be re-used?
Since the printing thread cannot preempt the softirq context and since
the printing threads are not started before @system_state is
SYSTEM_RUNNING, using @may_sleep is OK.
if (!may_sleep &&
con->thread &&
task_cpu(con->thread) == smp_processor_id()) {
continue;
}
John Ogness