[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240930085302.1558217-1-yukuai1@huaweicloud.com>
Date: Mon, 30 Sep 2024 16:52:57 +0800
From: Yu Kuai <yukuai1@...weicloud.com>
To: axboe@...nel.dk,
tj@...nel.org,
josef@...icpanda.com
Cc: linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org,
cgroups@...r.kernel.org,
yukuai3@...wei.com,
yukuai1@...weicloud.com,
yi.zhang@...wei.com,
yangerkun@...wei.com
Subject: [PATCH v2 0/5] blk-cgroup: don't abuse bdi in blk-cgroup
From: Yu Kuai <yukuai3@...wei.com>
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
Powered by blists - more mailing lists