Commit 75274551 authored by xiaobing tu's avatar xiaobing tu Committed by Jens Axboe

deadline: Allow 0ms deadline latency, increase the read speed

Change a timer compare from after to after-equals, thus allowing
0 timeout and making deadline schedule FIFO.
Signed-off-by: default avatarxiaobing tu <xiaobing.tu@intel.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 5f6f38db
...@@ -230,7 +230,7 @@ static inline int deadline_check_fifo(struct deadline_data *dd, int ddir) ...@@ -230,7 +230,7 @@ static inline int deadline_check_fifo(struct deadline_data *dd, int ddir)
/* /*
* rq is expired! * rq is expired!
*/ */
if (time_after(jiffies, rq_fifo_time(rq))) if (time_after_eq(jiffies, rq_fifo_time(rq)))
return 1; return 1;
return 0; return 0;
......
Markdown is supported
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