• Lai Jiangshan's avatar
    workqueue: Move the code of waking a worker up in unbind_workers() · 989442d7
    Lai Jiangshan authored
    In unbind_workers(), there are two pool->lock held sections separated
    by the code of zapping nr_running.  wake_up_worker() needs to be in
    pool->lock held section and after zapping nr_running.  And zapping
    nr_running had to be after schedule() when the local wake up
    functionality was in use.  Now, the call to schedule() has been removed
    along with the local wake up functionality, so the code can be merged
    into the same pool->lock held section.
    
    The diffstat shows that it is other code moved down because the diff
    tools can not know the meaning of merging lock sections by swapping
    two code blocks.
    Signed-off-by: default avatarLai Jiangshan <laijs@linux.alibaba.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    989442d7
workqueue.c 168 KB