@@ -2448,10 +2448,6 @@ static void bfq_remove_request(struct request_queue *q,
if (unlikely(!bfqd->nonrot_with_queueing))
bfq_pos_tree_add_move(bfqd, bfqq);
}
-
- if (rq->cmd_flags & REQ_META)
- bfqq->meta_pending--;
-
}
static bool bfq_bio_merge(struct request_queue *q, struct bio *bio,
@@ -5975,9 +5971,6 @@ static void bfq_update_has_short_ttime(struct bfq_data *bfqd,
static void bfq_rq_enqueued(struct bfq_data *bfqd, struct bfq_queue *bfqq,
struct request *rq)
{
- if (rq->cmd_flags & REQ_META)
- bfqq->meta_pending++;
-
bfqq->last_request_pos = blk_rq_pos(rq) + blk_rq_sectors(rq);
if (bfqq == bfqd->in_service_queue && bfq_bfqq_wait_request(bfqq)) {
@@ -268,8 +268,6 @@ struct bfq_queue {
struct request *next_rq;
/* number of sync and async requests queued */
int queued[2];
- /* number of pending metadata requests */
- int meta_pending;
/* fifo list of requests in sort_list */
struct list_head fifo;
The meta_pending is counted only, but no one use it, so remove it. Signed-off-by: Yuwei Guan <Yuwei.Guan@zeekrlife.com> --- block/bfq-iosched.c | 7 ------- block/bfq-iosched.h | 2 -- 2 files changed, 9 deletions(-)