diff options
| author | Yu Kuai <yukuai3@huawei.com> | 2025-05-06 15:48:54 +0300 |
|---|---|---|
| committer | Yu Kuai <yukuai3@huawei.com> | 2025-05-10 11:04:38 +0300 |
| commit | c151919080ad4dc98bb40bc9cdcde412d72f8b23 (patch) | |
| tree | 890325d994d061fb22f912c346fbbf48d160fbeb | |
| parent | 824afb9b04648ea11531fc9047923ec07e7a943d (diff) | |
| download | linux-c151919080ad4dc98bb40bc9cdcde412d72f8b23.tar.xz | |
blk-mq: remove blk_mq_in_flight()
After commit 7be835694dae ("block: fix that util can be greater than
100%"), it's not used and can be removed.
Link: https://lore.kernel.org/linux-raid/20250506124903.2540268-1-yukuai1@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
| -rw-r--r-- | block/blk-mq.c | 10 | ||||
| -rw-r--r-- | block/blk-mq.h | 2 |
2 files changed, 0 insertions, 12 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 4f79a9808fd1..7d87e893999b 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -101,16 +101,6 @@ static bool blk_mq_check_inflight(struct request *rq, void *priv) return true; } -unsigned int blk_mq_in_flight(struct request_queue *q, - struct block_device *part) -{ - struct mq_inflight mi = { .part = part }; - - blk_mq_queue_tag_busy_iter(q, blk_mq_check_inflight, &mi); - - return mi.inflight[0] + mi.inflight[1]; -} - void blk_mq_in_flight_rw(struct request_queue *q, struct block_device *part, unsigned int inflight[2]) { diff --git a/block/blk-mq.h b/block/blk-mq.h index d15ff1e130c8..eeac0d47c878 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -246,8 +246,6 @@ static inline bool blk_mq_hw_queue_mapped(struct blk_mq_hw_ctx *hctx) return hctx->nr_ctx && hctx->tags; } -unsigned int blk_mq_in_flight(struct request_queue *q, - struct block_device *part); void blk_mq_in_flight_rw(struct request_queue *q, struct block_device *part, unsigned int inflight[2]); |
