From: xiaobing tu Date: Sun, 9 Dec 2012 18:19:23 +0000 (+0100) Subject: deadline: Allow 0ms deadline latency, increase the read speed X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75274551c81796b636c5acb0c2597dec7ec2e6c4;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Jens Axboe --- 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;