summaryrefslogtreecommitdiff
path: root/kernel/bpf/helpers.c
diff options
context:
space:
mode:
authorLai Jiangshan <jiangshan.ljs@antgroup.com>2022-07-29 12:44:38 +0300
committerTejun Heo <tj@kernel.org>2022-07-29 20:49:02 +0300
commit46a4d679ef88285ea17c3e1e4fed330be2044f21 (patch)
tree041b7b34242dc7f44b8bd6bf894839e778926b12 /kernel/bpf/helpers.c
parent8bee9dd953b69c634d1c9a3241a8b357469ad4aa (diff)
downloadlinux-46a4d679ef88285ea17c3e1e4fed330be2044f21.tar.xz
workqueue: Avoid a false warning in unbind_workers()
Doing set_cpus_allowed_ptr() with wq_unbound_cpumask can be possible fails and trigger the false warning. Use cpu_possible_mask instead when wq_unbound_cpumask has no active CPUs. It is very easy to trigger the warning: Set wq_unbound_cpumask to a small set of CPUs. Offline all the CPUs of wq_unbound_cpumask. Offline an extra CPU and trigger the warning. Fixes: 10a5a651e3af ("workqueue: Restrict kworker in the offline CPU pool running on housekeeping CPUs") Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/bpf/helpers.c')
0 files changed, 0 insertions, 0 deletions