diff options
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 3df41a00b553..03b1e474b2bf 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -885,16 +885,17 @@ static inline struct request *cfq_check_fifo(struct cfq_queue *cfqq) | |||
885 | 885 | ||
886 | if (cfq_cfqq_fifo_expire(cfqq)) | 886 | if (cfq_cfqq_fifo_expire(cfqq)) |
887 | return NULL; | 887 | return NULL; |
888 | |||
889 | cfq_mark_cfqq_fifo_expire(cfqq); | ||
890 | |||
888 | if (list_empty(&cfqq->fifo)) | 891 | if (list_empty(&cfqq->fifo)) |
889 | return NULL; | 892 | return NULL; |
890 | 893 | ||
891 | fifo = cfq_cfqq_class_sync(cfqq); | 894 | fifo = cfq_cfqq_class_sync(cfqq); |
892 | rq = rq_entry_fifo(cfqq->fifo.next); | 895 | rq = rq_entry_fifo(cfqq->fifo.next); |
893 | 896 | ||
894 | if (time_after(jiffies, rq->start_time + cfqd->cfq_fifo_expire[fifo])) { | 897 | if (time_after(jiffies, rq->start_time + cfqd->cfq_fifo_expire[fifo])) |
895 | cfq_mark_cfqq_fifo_expire(cfqq); | ||
896 | return rq; | 898 | return rq; |
897 | } | ||
898 | 899 | ||
899 | return NULL; | 900 | return NULL; |
900 | } | 901 | } |