Skip to content
Commit 715f1300 authored by Tejun Heo's avatar Tejun Heo
Browse files

workqueue: fix zero @delay handling of queue_delayed_work_on()



If @delay is zero and the dealyed_work is idle, queue_delayed_work()
queues it for immediate execution; however, queue_delayed_work_on()
lacks this logic and always goes through timer regardless of @delay.

This patch moves 0 @delay handling logic from queue_delayed_work() to
queue_delayed_work_on() so that both functions behave the same.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 57469821
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment