Re: [PATCH 07/10] workqueue: Manually break affinity on hotplug for unbound pool

From: Tejun Heo
Date: Wed Dec 16 2020 - 09:52:20 EST


On Mon, Dec 14, 2020 at 11:54:54PM +0800, Lai Jiangshan wrote:
> * An unbound pool may end up with a cpumask which doesn't have any online
> - * CPUs. When a worker of such pool get scheduled, the scheduler resets
> - * its cpus_allowed. If @cpu is in @pool's cpumask which didn't have any
> - * online CPU before, cpus_allowed of all its workers should be restored.
> + * CPUs. We have to reset workers' cpus_allowed of such pool. And we
> + * restore the workers' cpus_allowed when the pool's cpumask has online
> + * CPU at the first time after reset.
^
for the first time

--
tejun