Skip to content
Snippets Groups Projects
Select Git revision
  • 36e227d242f9ec7cb4a8e968561b3b26e3d8b5d1
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

workqueue.c

  • Tejun Heo's avatar
    36e227d2
    workqueue: reorganize try_to_grab_pending() and __cancel_timer_work() · 36e227d2
    Tejun Heo authored
    
    * Use bool @is_dwork instead of @timer and let try_to_grab_pending()
      use to_delayed_work() to determine the delayed_work address.
    
    * Move timer handling from __cancel_work_timer() to
      try_to_grab_pending().
    
    * Make try_to_grab_pending() use -EAGAIN instead of -1 for
      busy-looping and drop the ret local variable.
    
    * Add proper function comment to try_to_grab_pending().
    
    This makes the code a bit easier to understand and will ease further
    changes.  This patch doesn't make any functional change.
    
    v2: Use @is_dwork instead of @timer.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    36e227d2
    History
    workqueue: reorganize try_to_grab_pending() and __cancel_timer_work()
    Tejun Heo authored
    
    * Use bool @is_dwork instead of @timer and let try_to_grab_pending()
      use to_delayed_work() to determine the delayed_work address.
    
    * Move timer handling from __cancel_work_timer() to
      try_to_grab_pending().
    
    * Make try_to_grab_pending() use -EAGAIN instead of -1 for
      busy-looping and drop the ret local variable.
    
    * Add proper function comment to try_to_grab_pending().
    
    This makes the code a bit easier to understand and will ease further
    changes.  This patch doesn't make any functional change.
    
    v2: Use @is_dwork instead of @timer.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>