summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2015-05-19 18:03:48 +0800
committerTejun Heo <tj@kernel.org>2015-05-19 17:37:00 -0400
commitd4d3e2579756e3a5f4fbf8eac211f0696e253bcd (patch)
treeb6d880e578cd07db0d60a8dee86c28d67abb446c /tools/perf/scripts/python/net_dropmonitor.py
parenta0111cf6710bd1b4145ef313d3f4772602af051b (diff)
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/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions