|
@@ -1973,7 +1973,8 @@ cfq_merged_requests(struct request_queue *q, struct request *rq,
|
|
* reposition in fifo if next is older than rq
|
|
* reposition in fifo if next is older than rq
|
|
*/
|
|
*/
|
|
if (!list_empty(&rq->queuelist) && !list_empty(&next->queuelist) &&
|
|
if (!list_empty(&rq->queuelist) && !list_empty(&next->queuelist) &&
|
|
- time_before(rq_fifo_time(next), rq_fifo_time(rq))) {
|
|
|
|
|
|
+ time_before(rq_fifo_time(next), rq_fifo_time(rq)) &&
|
|
|
|
+ cfqq == RQ_CFQQ(next)) {
|
|
list_move(&rq->queuelist, &next->queuelist);
|
|
list_move(&rq->queuelist, &next->queuelist);
|
|
rq_set_fifo_time(rq, rq_fifo_time(next));
|
|
rq_set_fifo_time(rq, rq_fifo_time(next));
|
|
}
|
|
}
|