blk-mq: only try to run plug merge if request has same queue with incoming bio
authorMing Lei <ming.lei@redhat.com>
Tue, 2 Nov 2021 13:35:00 +0000 (21:35 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Nov 2021 15:27:57 +0000 (09:27 -0600)
commita1cb65377e707500819b2c2c34064e5ceb32798b
treed1a1d8b542c176c5c9c2527873939f6af1c4c2b1
parent781dd830ec4f4d56b99d5d0c64bacda4c3ee3cfd
blk-mq: only try to run plug merge if request has same queue with incoming bio

It is obvious that io merge can't be done between two different queues, so
just try to run io merge in case of same queue.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20211102133502.3619184-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c