Re: [PATCH -tip V3 8/8] workqueue: Fix affinity of kworkers when attaching into pool

2020-12-29 Thread Lai Jiangshan
On Tue, Dec 29, 2020 at 6:06 PM Hillf Danton wrote: > > On Sat, 26 Dec 2020 10:51:16 +0800 > > From: Lai Jiangshan > > > > When worker_attach_to_pool() is called, we should not put the workers > > to pool->attrs->cpumask when there is not CPU online in it. > > > > We have to use wq_online_cpumask

[PATCH -tip V3 8/8] workqueue: Fix affinity of kworkers when attaching into pool

2020-12-25 Thread Lai Jiangshan
From: Lai Jiangshan When worker_attach_to_pool() is called, we should not put the workers to pool->attrs->cpumask when there is not CPU online in it. We have to use wq_online_cpumask in worker_attach_to_pool() to check if pool->attrs->cpumask is valid rather than cpu_online_mask or cpu_active_ma