Skip to content

Commit c151919

Browse files
committed
blk-mq: remove blk_mq_in_flight()
After commit 7be8356 ("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>
1 parent 824afb9 commit c151919

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

block/blk-mq.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,6 @@ static bool blk_mq_check_inflight(struct request *rq, void *priv)
101101
return true;
102102
}
103103

104-
unsigned int blk_mq_in_flight(struct request_queue *q,
105-
struct block_device *part)
106-
{
107-
struct mq_inflight mi = { .part = part };
108-
109-
blk_mq_queue_tag_busy_iter(q, blk_mq_check_inflight, &mi);
110-
111-
return mi.inflight[0] + mi.inflight[1];
112-
}
113-
114104
void blk_mq_in_flight_rw(struct request_queue *q, struct block_device *part,
115105
unsigned int inflight[2])
116106
{

block/blk-mq.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,6 @@ static inline bool blk_mq_hw_queue_mapped(struct blk_mq_hw_ctx *hctx)
246246
return hctx->nr_ctx && hctx->tags;
247247
}
248248

249-
unsigned int blk_mq_in_flight(struct request_queue *q,
250-
struct block_device *part);
251249
void blk_mq_in_flight_rw(struct request_queue *q, struct block_device *part,
252250
unsigned int inflight[2]);
253251

0 commit comments

Comments
 (0)