diff --git a/block/blk-mq.c b/block/blk-mq.c index 5fe40c85a3087c5da25792ae105b46d4dd6a096b..bbe1fb2dd58d1c81ef8c4af56229931308706f11 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2540,7 +2540,7 @@ static inline struct request *blk_mq_get_request(struct request_queue *q, struct request *rq; rq = rq_list_peek(&plug->cached_rq); - if (rq) { + if (rq && rq->q == q) { if (unlikely(!submit_bio_checks(bio))) return NULL; if (blk_attempt_bio_merge(q, bio, nsegs, same_queue_rq))