|
@@ -3463,7 +3463,7 @@ static struct worker_pool *get_unbound_pool(const struct workqueue_attrs *attrs)
|
|
hash_for_each_possible(unbound_pool_hash, pool, hash_node, hash) {
|
|
hash_for_each_possible(unbound_pool_hash, pool, hash_node, hash) {
|
|
if (wqattrs_equal(pool->attrs, attrs)) {
|
|
if (wqattrs_equal(pool->attrs, attrs)) {
|
|
pool->refcnt++;
|
|
pool->refcnt++;
|
|
- goto out_unlock;
|
|
|
|
|
|
+ return pool;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3501,7 +3501,7 @@ static struct worker_pool *get_unbound_pool(const struct workqueue_attrs *attrs)
|
|
|
|
|
|
/* install */
|
|
/* install */
|
|
hash_add(unbound_pool_hash, &pool->hash_node, hash);
|
|
hash_add(unbound_pool_hash, &pool->hash_node, hash);
|
|
-out_unlock:
|
|
|
|
|
|
+
|
|
return pool;
|
|
return pool;
|
|
fail:
|
|
fail:
|
|
if (pool)
|
|
if (pool)
|