Skip to content

Commit

Permalink
deadline: Allow 0ms deadline latency, increase the read speed
Browse files Browse the repository at this point in the history
Change a timer compare from after to after-equals, thus allowing
0 timeout and making deadline schedule FIFO.

Signed-off-by: xiaobing tu <xiaobing.tu@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
tuxiaobing authored and axboe committed Dec 9, 2012
1 parent 5f6f38d commit 7527455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/deadline-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7527455

Please sign in to comment.