• Tejun Heo's avatar
    workqueue: invert the order between pool->lock and wq_mayday_lock · b2d82909
    Tejun Heo authored
    Currently, pool->lock nests inside pool->lock.  There's no inherent
    reason for this order.  The only place where the two locks are held
    together is pool_mayday_timeout() and it just got decided that way.
    
    This nesting order turns out to complicate things with the planned
    rescuer_thread() update.  Let's invert them.  This doesn't cause any
    behavior differences.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Reviewed-by: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
    Cc: NeilBrown <neilb@suse.de>
    Cc: Dongsu Park <dongsu.park@profitbricks.com>
    b2d82909
workqueue.c 136 KB