diff --git a/block/blk-core.c b/block/blk-core.c index 414e8224588fa581c821ee6c32e5c2db7aa61232..1f61b74867e41d3f74f61aeec539e8b00157dacf 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1277,7 +1277,8 @@ static bool attempt_plug_merge(struct request_queue *q, struct bio *bio, list_for_each_entry_reverse(rq, &plug->list, queuelist) { int el_ret; - (*request_count)++; + if (rq->q == q) + (*request_count)++; if (rq->q != q || !blk_rq_merge_ok(rq, bio)) continue;