1. 19 Sep, 2010 3 commits
    • Tejun Heo's avatar
      workqueue: factor out start_flush_work() · baf59022
      Tejun Heo authored
      Factor out start_flush_work() from flush_work().  start_flush_work()
      has @wait_executing argument which controls whether the barrier is
      queued only if the work is pending or also if executing.  As
      flush_work() needs to wait for execution too, it uses %true.
      
      This commit doesn't cause any behavior difference.  start_flush_work()
      will be used to implement flush_work_sync().
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      baf59022
    • Tejun Heo's avatar
      workqueue: cleanup flush/cancel functions · 401a8d04
      Tejun Heo authored
      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: default avatarTejun Heo <tj@kernel.org>
      401a8d04
    • Tejun Heo's avatar
      workqueue: implement alloc_ordered_workqueue() · 81dcaf65
      Tejun Heo authored
      alloc_ordered_workqueue() creates a workqueue which processes each
      work itemp one by one in the queued order.  This will be used to
      replace create_freezeable_workqueue() and
      create_singlethread_workqueue().
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      81dcaf65
  2. 17 Sep, 2010 19 commits
  3. 16 Sep, 2010 14 commits
  4. 15 Sep, 2010 4 commits