Commit 409499e9 authored by Jens Axboe's avatar Jens Axboe

[PATCH] fix request-to-request front merging

bio-to-request front merging works, but request-to-request has been
broken due to a bit too much copy'n pasting.
parent 7e843937
...@@ -399,7 +399,7 @@ struct request *elv_former_request(request_queue_t *q, struct request *rq) ...@@ -399,7 +399,7 @@ struct request *elv_former_request(request_queue_t *q, struct request *rq)
elevator_t *e = &q->elevator; elevator_t *e = &q->elevator;
if (e->elevator_former_req_fn) if (e->elevator_former_req_fn)
return e->elevator_latter_req_fn(q, rq); return e->elevator_former_req_fn(q, rq);
prev = rq->queuelist.prev; prev = rq->queuelist.prev;
if (prev != &q->queue_head && prev != &rq->queuelist) if (prev != &q->queue_head && prev != &rq->queuelist)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment