• Lai Jiangshan's avatar
    workqueue: Remove useless pool->dying_workers · a071b043
    Lai Jiangshan authored
    A dying worker is first moved from pool->workers to pool->dying_workers
    in set_worker_dying() and removed from pool->dying_workers in
    detach_dying_workers().  The whole procedure is in the some lock context
    of wq_pool_attach_mutex.
    
    So pool->dying_workers is useless, just remove it and keep the dying
    worker in pool->workers after set_worker_dying() and remove it in
    detach_dying_workers() with wq_pool_attach_mutex held.
    
    Cc: Valentin Schneider <vschneid@redhat.com>
    Signed-off-by: default avatarLai Jiangshan <jiangshan.ljs@antgroup.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    a071b043
workqueue.c 222 KB