• T
    workqueue: cleanup flush/cancel functions · 401a8d04
    Tejun Heo 提交于
    Make the following cleanup changes.
    
    * Relocate flush/cancel function prototypes and definitions.
    
    * Relocate wait_on_cpu_work() and wait_on_work() before
      try_to_grab_pending().  These will be used to implement
      flush_work_sync().
    
    * Make all flush/cancel functions return bool instead of int.
    
    * Update wait_on_cpu_work() and wait_on_work() to return %true if they
      actually waited.
    
    * Add / update comments.
    
    This patch doesn't cause any functional changes.
    Signed-off-by: NTejun Heo <tj@kernel.org>
    401a8d04
workqueue.h 12.8 KB