Re: [RFC PATCH] workqueue: Unbind workers before sending them to exit()
From: Tejun Heo
Date: Sat Jul 23 2022 - 01:16:29 EST
On Thu, Jul 21, 2022 at 02:53:43PM +0100, Valentin Schneider wrote:
> > I think it needs something like task_set_cpumask_possible() which is
> > documented as being usable in (raw) spinlocks and set the task's cpumask
> > to cpu_possible_mask and let the later ttwu help migrate it to a
> > proper non-isolated CPU or let it keep running.
>
> I'll see what I can come up with, thanks for the suggestion.
Alternatively, we can just kill all the idle kworkers on isolated cpus at
the end of the booting process.
Thanks.
--
tejun