[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241221093710.926309-4-yukuai1@huaweicloud.com>
Date: Sat, 21 Dec 2024 17:37:06 +0800
From: Yu Kuai <yukuai1@...weicloud.com>
To: axboe@...nel.dk,
akpm@...ux-foundation.org,
ming.lei@...hat.com,
yang.yang@...o.com,
yukuai3@...wei.com,
bvanassche@....org
Cc: linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org,
yukuai1@...weicloud.com,
yi.zhang@...wei.com,
yangerkun@...wei.com
Subject: [PATCH RFC v3 3/7] block/elevator: add new ops async_depth_updated()
From: Yu Kuai <yukuai3@...wei.com>
The new api will be used in mq-deadline and kyber in following patches,
prepare to refactor async_depth.
Signed-off-by: Yu Kuai <yukuai3@...wei.com>
---
block/elevator.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/elevator.h b/block/elevator.h
index dbf357ef4fab..21a431873f48 100644
--- a/block/elevator.h
+++ b/block/elevator.h
@@ -29,6 +29,7 @@ struct elevator_mq_ops {
int (*init_hctx)(struct blk_mq_hw_ctx *, unsigned int);
void (*exit_hctx)(struct blk_mq_hw_ctx *, unsigned int);
void (*depth_updated)(struct blk_mq_hw_ctx *);
+ int (*async_depth_updated)(struct request_queue *, unsigned int);
bool (*allow_merge)(struct request_queue *, struct request *, struct bio *);
bool (*bio_merge)(struct request_queue *, struct bio *, unsigned int);
--
2.39.2
Powered by blists - more mailing lists