diff options
author | 2023-01-12 16:14:27 +0000 | |
---|---|---|
committer | 2023-01-12 06:21:48 -1000 | |
commit | 99c621ef243bda726fb8d982a274ded96570b410 (patch) | |
tree | 8867dcce2a589037d7f7d9dbfdcb506738485b44 /scripts/generate_rust_analyzer.py | |
parent | workqueue: Make show_pwq() use run-length encoding (diff) | |
download | linux-rng-99c621ef243bda726fb8d982a274ded96570b410.tar.xz linux-rng-99c621ef243bda726fb8d982a274ded96570b410.zip |
workqueue: Protects wq_unbound_cpumask with wq_pool_attach_mutex
When unbind_workers() reads wq_unbound_cpumask to set the affinity of
freshly-unbound kworkers, it only holds wq_pool_attach_mutex. This isn't
sufficient as wq_unbound_cpumask is only protected by wq_pool_mutex.
Make wq_unbound_cpumask protected with wq_pool_attach_mutex and also
remove the need of temporary saved_cpumask.
Fixes: 10a5a651e3af ("workqueue: Restrict kworker in the offline CPU pool running on housekeeping CPUs")
Reported-by: Valentin Schneider <vschneid@redhat.com>
Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions