• Tejun Heo's avatar
    workqueue: Introduce work_cancel_flags · c5f5b942
    Tejun Heo authored
    The cancel path used bool @is_dwork to distinguish canceling a regular work
    and a delayed one. The planned disable/enable support will need passing
    around another flag in the code path. As passing them around with bools will
    be confusing, let's introduce named flags to pass around in the cancel path.
    
    WORK_CANCEL_DELAYED replaces @is_dwork. No functional changes.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Reviewed-by: default avatarLai Jiangshan <jiangshanlai@gmail.com>
    c5f5b942
workqueue.c 217 KB