summaryrefslogtreecommitdiffstats
path: root/block/blk.h
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2024-05-09 20:11:06 +0800
committerJens Axboe <axboe@kernel.dk>2024-05-09 09:44:55 -0600
commitbf20ab538c81bb32edab86f503fc0c55d8243bbc (patch)
tree543cd1e241c7b8a0f2f290be57ea9597e9210a0e /block/blk.h
parent7be835694daebbb4adffbc461519081aa0cf28e1 (diff)
downloadlinux-bf20ab538c81bb32edab86f503fc0c55d8243bbc.tar.gz
linux-bf20ab538c81bb32edab86f503fc0c55d8243bbc.tar.bz2
linux-bf20ab538c81bb32edab86f503fc0c55d8243bbc.zip
blk-throttle: remove CONFIG_BLK_DEV_THROTTLING_LOW
One the one hand, it's marked EXPERIMENTAL since 2017, and looks like there are no users since then, and no testers and no developers, it's just not active at all. On the other hand, even if the config is disabled, there are still many fields in throtl_grp and throtl_data and many functions that are only used for throtl low. At last, currently blk-throtl is initialized during disk initialization, and destroyed during disk removal, and it exposes many functions to be called directly from block layer. Remove throtl low to make code much more cleaner and follow up work much easier. Signed-off-by: Yu Kuai <yukuai3@huawei.com> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20240509121107.3195568-2-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/block/blk.h b/block/blk.h
index 3870bdcd5cad..6e94c10af798 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -388,17 +388,6 @@ static inline void ioc_clear_queue(struct request_queue *q)
}
#endif /* CONFIG_BLK_ICQ */
-#ifdef CONFIG_BLK_DEV_THROTTLING_LOW
-extern ssize_t blk_throtl_sample_time_show(struct request_queue *q, char *page);
-extern ssize_t blk_throtl_sample_time_store(struct request_queue *q,
- const char *page, size_t count);
-extern void blk_throtl_bio_endio(struct bio *bio);
-extern void blk_throtl_stat_add(struct request *rq, u64 time);
-#else
-static inline void blk_throtl_bio_endio(struct bio *bio) { }
-static inline void blk_throtl_stat_add(struct request *rq, u64 time) { }
-#endif
-
struct bio *__blk_queue_bounce(struct bio *bio, struct request_queue *q);
static inline bool blk_queue_may_bounce(struct request_queue *q)