Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12153
b: refs/heads/master
c: ca23509
h: refs/heads/master
i:
  12151: 1601b2d
v: v3
  • Loading branch information
Tejun Heo authored and Linus Torvalds committed Nov 2, 2005
1 parent 5a8df53 commit a6ae320
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 6c2af71f7f6ac10ab45e9461e1dd7aa09079643a
refs/heads/master: ca23509fbaac0ea662ab0e287bebb72f743f9e1f
7 changes: 6 additions & 1 deletion trunk/drivers/block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,14 @@ void __elv_add_request(request_queue_t *q, struct request *rq, int where,
case ELEVATOR_INSERT_SORT:
BUG_ON(!blk_fs_request(rq));
rq->flags |= REQ_SORTED;
q->elevator->ops->elevator_add_req_fn(q, rq);
if (q->last_merge == NULL && rq_mergeable(rq))
q->last_merge = rq;
/*
* Some ioscheds (cfq) run q->request_fn directly, so
* rq cannot be accessed after calling
* elevator_add_req_fn.
*/
q->elevator->ops->elevator_add_req_fn(q, rq);
break;

default:
Expand Down

0 comments on commit a6ae320

Please sign in to comment.