• Tejun Heo's avatar
    workqueue: make GCWQ_DISASSOCIATED a pool flag · 24647570
    Tejun Heo authored
    Make GCWQ_DISASSOCIATED a pool flag POOL_DISASSOCIATED.  This patch
    doesn't change locking - DISASSOCIATED on both pools of a CPU are set
    or clear together while holding gcwq->lock.  It shouldn't cause any
    functional difference.
    
    This is part of an effort to remove global_cwq and make worker_pool
    the top level abstraction, which in turn will help implementing worker
    pools with user-specified attributes.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Reviewed-by: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
    24647570
workqueue.c 106 KB