diff options
author | xiaobing tu <xiaobing.tu@intel.com> | 2012-12-09 19:19:23 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-12-09 19:19:23 +0100 |
commit | 75274551c81796b636c5acb0c2597dec7ec2e6c4 (patch) | |
tree | 6854867ce09c9489e2563b1a0e3ccb0289674491 /block | |
parent | 5f6f38dbb0fc8518b19542b0ad0739a8a95f05a1 (diff) | |
download | lwn-75274551c81796b636c5acb0c2597dec7ec2e6c4.tar.gz lwn-75274551c81796b636c5acb0c2597dec7ec2e6c4.zip |
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 <xiaobing.tu@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/deadline-iosched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/deadline-iosched.c b/block/deadline-iosched.c index 599b12e5380f..90037b5eb17f 100644 --- a/block/deadline-iosched.c +++ b/block/deadline-iosched.c @@ -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; |