diff options
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index a2e496f285a4..bd55b1df8997 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -630,6 +630,9 @@ static inline void blkdev_dequeue_request(struct request *req) | |||
630 | static inline void elv_dispatch_add_tail(struct request_queue *q, | 630 | static inline void elv_dispatch_add_tail(struct request_queue *q, |
631 | struct request *rq) | 631 | struct request *rq) |
632 | { | 632 | { |
633 | if (q->last_merge == rq) | ||
634 | q->last_merge = NULL; | ||
635 | |||
633 | q->end_sector = rq_end_sector(rq); | 636 | q->end_sector = rq_end_sector(rq); |
634 | q->boundary_rq = rq; | 637 | q->boundary_rq = rq; |
635 | list_add_tail(&rq->queuelist, &q->queue_head); | 638 | list_add_tail(&rq->queuelist, &q->queue_head); |