]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: Restrict kworker in the offline CPU pool running on housekeeping CPUs
authorZqiang <qiang1.zhang@intel.com>
Thu, 31 Mar 2022 05:57:17 +0000 (13:57 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 21 Apr 2022 22:31:04 +0000 (12:31 -1000)
commit40c32ece1facf923646a65c770d1235dd9dc1428
treeac78c403db8f5343539c1035aef9a0fb73f27a69
parent97f11003c9b44879b34daf441079f3ded959a3b0
workqueue: Restrict kworker in the offline CPU pool running on housekeeping CPUs

When a CPU is going offline, all workers on the CPU's pool will have their
cpus_allowed cleared to cpu_possible_mask and can run on any CPUs including
the isolated ones. Instead, set cpus_allowed to wq_unbound_cpumask so that
the can avoid isolated CPUs.

Signed-off-by: Zqiang <qiang1.zhang@intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c