• T
    workqueue: restructure __alloc_workqueue_key() · d2c1d404
    Tejun Heo 提交于
    * Move initialization and linking of pool_workqueues into
      init_and_link_pwq().
    
    * Make the failure path use destroy_workqueue() once pool_workqueue
      initialization succeeds.
    
    These changes are to prepare for dynamic management of pool_workqueues
    and don't introduce any functional changes.
    
    While at it, convert list_del(&wq->list) to list_del_init() as a
    precaution as scheduled changes will make destruction more complex.
    Signed-off-by: NTejun Heo <tj@kernel.org>
    Reviewed-by: NLai Jiangshan <laijs@cn.fujitsu.com>
    d2c1d404
workqueue.c 110.7 KB