diff --git a/block/blk-mq.c b/block/blk-mq.c index 2e4b3cad2a610ce6a8baff61dc13301668fc6c8a..c5fefd39d0c04677643cc64847f47fab07f5c494 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -105,7 +105,7 @@ static bool blk_mq_check_inflight(struct blk_mq_hw_ctx *hctx, { struct mq_inflight *mi = priv; - if (rq->part == mi->part) + if (rq->part == mi->part && blk_mq_rq_state(rq) == MQ_RQ_IN_FLIGHT) mi->inflight[rq_data_dir(rq)]++; return true;