Skip to content

Commit

Permalink
cfq: choose a new next_req when a request is dispatched
Browse files Browse the repository at this point in the history
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: Jens Axboe <[email protected]>
  • Loading branch information
JeffMoyer authored and Jens Axboe committed Sep 14, 2009
1 parent a9327ca commit 06d2188
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 06d2188

Please sign in to comment.