mbox series

[v2,0/3] blk-ioprio: remove per-disk structure

Message ID 20240719023431.3800647-1-yukuai1@huaweicloud.com (mailing list archive)
Headers show
Series blk-ioprio: remove per-disk structure | expand

Message

Yu Kuai July 19, 2024, 2:34 a.m. UTC
From: Yu Kuai <yukuai3@huawei.com>

Changes in v2:
 - add patch 1;

The idea is that ioprio doesn't need to access blkg, all it needs is
blkcg, hence blk_register_policy() is enough, and blk_activate_policy()
is not needed.

Yu Kuai (3):
  blk-cgroup: check for pd_(alloc|free)_fn in blkcg_activate_policy()
  blk-ioprio: remove ioprio_blkcg_from_bio()
  blk-ioprio: remove per-disk structure

 block/blk-cgroup.c | 21 +++++++++--------
 block/blk-ioprio.c | 57 +---------------------------------------------
 block/blk-ioprio.h |  9 --------
 3 files changed, 13 insertions(+), 74 deletions(-)