diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2015-05-19 13:03:48 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-05-20 00:37:00 +0300 |
commit | d4d3e2579756e3a5f4fbf8eac211f0696e253bcd (patch) | |
tree | b6d880e578cd07db0d60a8dee86c28d67abb446c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a0111cf6710bd1b4145ef313d3f4772602af051b (diff) | |
download | linux-d4d3e2579756e3a5f4fbf8eac211f0696e253bcd.tar.xz |
workqueue: ensure attrs changes are properly synchronized
Current modification to attrs via sysfs is not fully synchronized.
Process A (change cpumask) | Process B (change numa affinity)
wq_cpumask_store() |
wq_sysfs_prep_attrs() |
| apply_workqueue_attrs()
apply_workqueue_attrs() |
It results that the Process B's operation is totally reverted
without any notification, it is a buggy behavior. So this patch
moves wq_sysfs_prep_attrs() into the protection under wq_pool_mutex
to ensure attrs changes are properly synchronized.
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