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

2020-12-18 Thread Lai Jiangshan
On Sat, Dec 19, 2020 at 1:59 AM Valentin Schneider wrote: > > > On 18/12/20 17:09, Lai Jiangshan wrote: > > 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_o

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

2020-12-18 Thread Valentin Schneider
On 18/12/20 17:09, Lai Jiangshan wrote: > 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

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

2020-12-18 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