diff options
author | Shaohua Li <shli@kernel.org> | 2013-08-01 09:56:36 +0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-08-01 08:36:40 -0400 |
commit | 2865a8fb44cc32420407362cbda80c10fa09c6b2 (patch) | |
tree | a4f3ca6dc957b7676610476b35e4342ad9a497d1 /samples/trace_events | |
parent | c2fda509667b0fda4372a237f5a59ea4570b1627 (diff) |
workqueue: copy workqueue_attrs with all fields
$echo '0' > /sys/bus/workqueue/devices/xxx/numa
$cat /sys/bus/workqueue/devices/xxx/numa
I got 1. It should be 0, the reason is copy_workqueue_attrs() called
in apply_workqueue_attrs() doesn't copy no_numa field.
Fix it by making copy_workqueue_attrs() copy ->no_numa too. This
would also make get_unbound_pool() set a pool's ->no_numa attribute
according to the workqueue attributes used when the pool was created.
While harmelss, as ->no_numa isn't a pool attribute, this is a bit
confusing. Clear it explicitly.
tj: Updated description and comments a bit.
Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'samples/trace_events')
0 files changed, 0 insertions, 0 deletions