workqueue/hotplug: remove the workaround in rebind_workers()
Since the cpu/hotplug refactoring, DOWN_FAILED is never called without preceding DOWN_PREPARE making the workaround unnecessary. Remove it. Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
e8b3f8db7a
commit
62408c1ef0
|
@ -4589,16 +4589,6 @@ static void rebind_workers(struct worker_pool *pool)
|
||||||
|
|
||||||
spin_lock_irq(&pool->lock);
|
spin_lock_irq(&pool->lock);
|
||||||
|
|
||||||
/*
|
|
||||||
* XXX: CPU hotplug notifiers are weird and can call DOWN_FAILED
|
|
||||||
* w/o preceding DOWN_PREPARE. Work around it. CPU hotplug is
|
|
||||||
* being reworked and this can go away in time.
|
|
||||||
*/
|
|
||||||
if (!(pool->flags & POOL_DISASSOCIATED)) {
|
|
||||||
spin_unlock_irq(&pool->lock);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
pool->flags &= ~POOL_DISASSOCIATED;
|
pool->flags &= ~POOL_DISASSOCIATED;
|
||||||
|
|
||||||
for_each_pool_worker(worker, pool) {
|
for_each_pool_worker(worker, pool) {
|
||||||
|
|
Loading…
Reference in New Issue