[PATCH v2 0/5] blk-cgroup: don't abuse bdi in blk-cgroup

From: Yu Kuai
Date: Mon Sep 30 2024 - 04:56:37 EST


From: Yu Kuai <yukuai3@xxxxxxxxxx>

The bdi_dev_name() should not be used in blk-cgroup code, because bdi is
not related at all, add a new helper to print device name directly from
gendisk. The helper can also fix that "unknown" will be printed for
hidden disks.

Yu Kuai (5):
blk-cgroup: add a new helper blkg_print_dev_name()
blk-iocost: use new helper blkg_print_dev_name()
blk-throttle: use new helper blkg_print_dev_name()
blk-iolatency: use new helper blkg_print_dev_name()
blk-cgroup: use new helper blkg_print_dev_name()

block/blk-cgroup-rwstat.c | 13 +++++++------
block/blk-cgroup.c | 19 ++++---------------
block/blk-cgroup.h | 13 ++++++++++++-
block/blk-iocost.c | 23 ++++++++++++-----------
block/blk-iolatency.c | 11 +++++++----
block/blk-throttle.c | 15 +++++----------
6 files changed, 47 insertions(+), 47 deletions(-)

--
2.39.2