summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorLai Jiangshan <jiangshan.ljs@antgroup.com>2023-01-12 19:14:27 +0300
committerTejun Heo <tj@kernel.org>2023-01-12 19:21:48 +0300
commit99c621ef243bda726fb8d982a274ded96570b410 (patch)
tree8867dcce2a589037d7f7d9dbfdcb506738485b44 /tools/perf/scripts/python/exported-sql-viewer.py
parentc76feb0d5dfdb90b70fa820bb3181142bb01e980 (diff)
downloadlinux-99c621ef243bda726fb8d982a274ded96570b410.tar.xz
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions