Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06d21886 authored by Jeff Moyer's avatar Jeff Moyer Committed by Jens Axboe
Browse files

cfq: choose a new next_req when a request is dispatched

This patch addresses http://bugzilla.kernel.org/show_bug.cgi?id=13401

, a
regression introduced in 2.6.30.

From the bug report:

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent a9327cac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1110,6 +1110,7 @@ static void cfq_dispatch_insert(struct request_queue *q, struct request *rq)

	cfq_log_cfqq(cfqd, cfqq, "dispatch_insert");

	cfqq->next_rq = cfq_find_next_rq(cfqd, cfqq, rq);
	cfq_remove_request(rq);
	cfqq->dispatched++;
	elv_dispatch_sort(q, rq);