diff options
-rw-r--r-- | kernel/workqueue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index e38d035bf671..40f4017285a0 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -3503,6 +3503,9 @@ static struct worker_pool *get_unbound_pool(const struct workqueue_attrs *attrs) | |||
3503 | if (!pool || init_worker_pool(pool) < 0) | 3503 | if (!pool || init_worker_pool(pool) < 0) |
3504 | goto fail; | 3504 | goto fail; |
3505 | 3505 | ||
3506 | if (workqueue_freezing) | ||
3507 | pool->flags |= POOL_FREEZING; | ||
3508 | |||
3506 | lockdep_set_subclass(&pool->lock, 1); /* see put_pwq() */ | 3509 | lockdep_set_subclass(&pool->lock, 1); /* see put_pwq() */ |
3507 | copy_workqueue_attrs(pool->attrs, attrs); | 3510 | copy_workqueue_attrs(pool->attrs, attrs); |
3508 | 3511 | ||