summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2015-05-19 13:03:48 +0300
committerTejun Heo <tj@kernel.org>2015-05-20 00:37:00 +0300
commitd4d3e2579756e3a5f4fbf8eac211f0696e253bcd (patch)
treeb6d880e578cd07db0d60a8dee86c28d67abb446c /tools/perf/scripts/python/export-to-postgresql.py
parenta0111cf6710bd1b4145ef313d3f4772602af051b (diff)
downloadlinux-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