diff mbox series

[RFC,v3,3/7] block/elevator: add new ops async_depth_updated()

Message ID 20241221093710.926309-4-yukuai1@huaweicloud.com (mailing list archive)
State New
Headers show
Series lib/sbitmap: fix shallow_depth tag allocation | expand

Commit Message

Yu Kuai Dec. 21, 2024, 9:37 a.m. UTC
From: Yu Kuai <yukuai3@huawei.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@huawei.com>
---
 block/elevator.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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);