[PATCH RFC v2 0/6] blk-throttle: support enable and disable during runtime

From: Yu Kuai
Date: Sat Apr 06 2024 - 04:09:38 EST


From: Yu Kuai <yukuai3@xxxxxxxxxx>

Hi, all!

I'm planning to support build all blk-throttle polices as kernel module,
this is the first part for blk-throttle:

- patch 1 remove THROTTLE LOW;
- patch 2 delay initialization from disk initialization to
configuration;
- patch 3-5 support to destroy blk-throttle is it's disabled;
- patch 6 switch blk-throttle to use rq_qos to stop exposing
blk-throttle internal implementations;

Changes from RFV v1:
- add missing places in patch 1;
- add patch 2-6;

Yu Kuai (6):
blk-throttle: remove CONFIG_BLK_DEV_THROTTLING_LOW
blk-throttle: delay initialization until configuration
blk-throttle: expand tg_conf_updated() to return if any tg has rules
blk-cgroup: add a new helper blkg_conf_exit_blkg()
blk-throttle: support to destroy throtl_data when blk-throttle is
disabled
blk-throtl: switch to use rq_qos

Documentation/ABI/stable/sysfs-block | 12 -
arch/loongarch/configs/loongson3_defconfig | 1 -
block/Kconfig | 11 -
block/bio.c | 1 -
block/blk-cgroup.c | 25 +-
block/blk-cgroup.h | 1 +
block/blk-core.c | 4 +-
block/blk-merge.c | 2 +-
block/blk-mq-debugfs.c | 2 +
block/blk-rq-qos.c | 13 +
block/blk-rq-qos.h | 11 +
block/blk-stat.c | 3 -
block/blk-sysfs.c | 9 -
block/blk-throttle.c | 1598 ++++++--------------
block/blk-throttle.h | 76 +-
block/blk.h | 11 -
block/genhd.c | 3 -
include/linux/blkdev.h | 4 -
18 files changed, 495 insertions(+), 1292 deletions(-)

--
2.39.2