summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2015-05-12 15:32:30 +0300
committerTejun Heo <tj@kernel.org>2015-05-18 23:22:57 +0300
commitf7142ed483f49f9108bea1be0c1afcd5d9098e05 (patch)
treefd817533489b688026cbc94d4a0ec2cbec03b85b /tools/perf/scripts/python/export-to-postgresql.py
parent5b95e1af8d17d85a17728f6de7dbff538e6e3c49 (diff)
downloadlinux-f7142ed483f49f9108bea1be0c1afcd5d9098e05.tar.xz
workqueue: simplify wq_update_unbound_numa()
wq_update_unbound_numa() is known be called with wq_pool_mutex held. But wq_update_unbound_numa() requests wq->mutex before reading wq->unbound_attrs, wq->numa_pwq_tbl[] and wq->dfl_pwq. But these fields were changed to be allowed being read with wq_pool_mutex held. So we simply remove the mutex_lock(&wq->mutex). Without the dependence on the the mutex_lock(&wq->mutex), the test of wq->unbound_attrs->no_numa can also be moved upward. The old code need a long comment to describe the stableness of @wq->unbound_attrs which is also guaranteed by wq_pool_mutex now, so we don't need this such comment. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions