workqueue: use mod_delayed_work() instead of __cancel + queue
Now that mod_delayed_work() is safe to call from IRQ handlers,
__cancel_delayed_work() followed by queue_delayed_work() can be
replaced with mod_delayed_work().
Most conversions are straight-forward except for the following.
* net/core/link_watch.c: linkwatch_schedule_work() was doing a quite
elaborate dancing around its delayed_work. Collapse it such that
linkwatch_work is queued for immediate execution if LW_URGENT and
existing timer is kept otherwise.
Signed-off-by: Tejun Heo <email address hidden>
Cc: "David S. Miller" <email address hidden>
Cc: Tomi Valkeinen <email address hidden>
A bisect implicates this bad commit.
commit e7c2f967445dd20 41f0f8e3179cca2 2bb8bb7f79
Author: Tejun Heo <email address hidden>
Date: Tue Aug 21 13:18:24 2012 -0700
workqueue: use mod_delayed_work() instead of __cancel + queue
Now that mod_delayed_work() is safe to call from IRQ handlers, delayed_ work() followed by queue_delayed_ work() can be
__cancel_
replaced with mod_delayed_work().
Most conversions are straight-forward except for the following.
* net/core/ link_watch. c: linkwatch_ schedule_ work() was doing a quite _work is queued for immediate execution if LW_URGENT and
elaborate dancing around its delayed_work. Collapse it such that
linkwatch
existing timer is kept otherwise.
Signed-off-by: Tejun Heo <email address hidden>
Cc: "David S. Miller" <email address hidden>
Cc: Tomi Valkeinen <email address hidden>
block/blk-core.c | 6 ++---- blk-throttle. c | 7 +------ block/floppy. c | 3 +-- infiniband/ core/mad. c | 14 +++++--------- input/keyboard/ qt2160. c | 3 +-- input/mouse/ synaptics_ i2c.c | 7 +------ link_watch. c | 21 ++++++- ------- -------
block/
drivers/
drivers/
drivers/
drivers/
net/core/
7 files changed, 17 insertions(+), 44 deletions(-)