Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47876
b: refs/heads/master
c: cb88741
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe authored and Jens Axboe committed Feb 11, 2007
1 parent 1019d32 commit 2856ef4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1792669cc1acc2069869b7ca41a0195240de05e0
refs/heads/master: cb8874119e9a3ec38c45942808c91cfbc014f402
7 changes: 4 additions & 3 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,16 +885,17 @@ static inline struct request *cfq_check_fifo(struct cfq_queue *cfqq)

if (cfq_cfqq_fifo_expire(cfqq))
return NULL;

cfq_mark_cfqq_fifo_expire(cfqq);

if (list_empty(&cfqq->fifo))
return NULL;

fifo = cfq_cfqq_class_sync(cfqq);
rq = rq_entry_fifo(cfqq->fifo.next);

if (time_after(jiffies, rq->start_time + cfqd->cfq_fifo_expire[fifo])) {
cfq_mark_cfqq_fifo_expire(cfqq);
if (time_after(jiffies, rq->start_time + cfqd->cfq_fifo_expire[fifo]))
return rq;
}

return NULL;
}
Expand Down

0 comments on commit 2856ef4

Please sign in to comment.