linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] blk-cgroup: don't abuse bdi in blk-cgroup
@ 2024-09-30  8:52 Yu Kuai
  2024-09-30  8:52 ` [PATCH v2 1/5] blk-cgroup: add a new helper blkg_print_dev_name() Yu Kuai
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Yu Kuai @ 2024-09-30  8:52 UTC (permalink / raw)
  To: axboe, tj, josef
  Cc: linux-block, linux-kernel, cgroups, yukuai3, yukuai1, yi.zhang,
	yangerkun

From: Yu Kuai <yukuai3@huawei.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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-10-31 16:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-30  8:52 [PATCH v2 0/5] blk-cgroup: don't abuse bdi in blk-cgroup Yu Kuai
2024-09-30  8:52 ` [PATCH v2 1/5] blk-cgroup: add a new helper blkg_print_dev_name() Yu Kuai
2024-09-30 17:11   ` Tejun Heo
2024-10-08  1:39     ` Yu Kuai
2024-10-08  5:01       ` Christoph Hellwig
2024-10-08  6:24         ` Yu Kuai
2024-10-08  6:29           ` Christoph Hellwig
2024-10-31  8:04     ` Yu Kuai
2024-10-31 16:55       ` Tejun Heo
2024-09-30  8:52 ` [PATCH 2/5] blk-iocost: use " Yu Kuai
2024-09-30  8:53 ` [PATCH 3/5] blk-throttle: " Yu Kuai
2024-09-30  8:53 ` [PATCH 4/5] blk-iolatency: " Yu Kuai
2024-09-30  8:53 ` [PATCH 5/5] blk-cgroup: " Yu Kuai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).