diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2015-05-19 13:03:47 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-05-20 00:37:00 +0300 |
commit | a0111cf6710bd1b4145ef313d3f4772602af051b (patch) | |
tree | 21acf858096755c322754314519dd04d2c8ed335 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f7142ed483f49f9108bea1be0c1afcd5d9098e05 (diff) | |
download | linux-a0111cf6710bd1b4145ef313d3f4772602af051b.tar.xz |
workqueue: separate out and refactor the locking of applying attrs
Applying attrs requires two locks: get_online_cpus() and wq_pool_mutex,
and this code is duplicated at two places (apply_workqueue_attrs() and
workqueue_set_unbound_cpumask()). So we separate out this locking
code into apply_wqattrs_[un]lock() and do a minor refactor on
apply_workqueue_attrs().
The apply_wqattrs_[un]lock() will be also used on later patch for
ensuring attrs changes are properly synchronized.
tj: minor updates to comments
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