diff options
Diffstat (limited to 'kernel/workqueue.c')
| -rw-r--r-- | kernel/workqueue.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 55f5f0afcd0d..726adc84b3ca 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
| @@ -3416,6 +3416,12 @@ static void copy_workqueue_attrs(struct workqueue_attrs *to, | |||
| 3416 | { | 3416 | { |
| 3417 | to->nice = from->nice; | 3417 | to->nice = from->nice; |
| 3418 | cpumask_copy(to->cpumask, from->cpumask); | 3418 | cpumask_copy(to->cpumask, from->cpumask); |
| 3419 | /* | ||
| 3420 | * Unlike hash and equality test, this function doesn't ignore | ||
| 3421 | * ->no_numa as it is used for both pool and wq attrs. Instead, | ||
| 3422 | * get_unbound_pool() explicitly clears ->no_numa after copying. | ||
| 3423 | */ | ||
| 3424 | to->no_numa = from->no_numa; | ||
| 3419 | } | 3425 | } |
| 3420 | 3426 | ||
| 3421 | /* hash value of the content of @attr */ | 3427 | /* hash value of the content of @attr */ |
| @@ -3583,6 +3589,12 @@ static struct worker_pool *get_unbound_pool(const struct workqueue_attrs *attrs) | |||
| 3583 | lockdep_set_subclass(&pool->lock, 1); /* see put_pwq() */ | 3589 | lockdep_set_subclass(&pool->lock, 1); /* see put_pwq() */ |
| 3584 | copy_workqueue_attrs(pool->attrs, attrs); | 3590 | copy_workqueue_attrs(pool->attrs, attrs); |
| 3585 | 3591 | ||
| 3592 | /* | ||
| 3593 | * no_numa isn't a worker_pool attribute, always clear it. See | ||
| 3594 | * 'struct workqueue_attrs' comments for detail. | ||
| 3595 | */ | ||
| 3596 | pool->attrs->no_numa = false; | ||
| 3597 | |||
| 3586 | /* if cpumask is contained inside a NUMA node, we belong to that node */ | 3598 | /* if cpumask is contained inside a NUMA node, we belong to that node */ |
| 3587 | if (wq_numa_enabled) { | 3599 | if (wq_numa_enabled) { |
| 3588 | for_each_node(node) { | 3600 | for_each_node(node) { |
