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: xiaobing tu <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
xiaobing tu 2012-12-09 19:19:23 +01:00 • committed by Jens Axboe
commit 75274551c8

View file

@ -230,7 +230,7 @@ static inline int deadline_check_fifo(struct deadline_data *dd, int ddir)
/*
* rq is expired!
*/
if (time_after(jiffies, rq_fifo_time(rq)))
if (time_after_eq(jiffies, rq_fifo_time(rq)))
return 1;
return 0;