blk-ioprio: remove per-disk structure
authorYu Kuai <yukuai3@huawei.com>
Fri, 19 Jul 2024 07:15:06 +0000 (15:15 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 28 Jul 2024 22:47:51 +0000 (16:47 -0600)
commit79c6c60a6c1f5128b31ab80b7ac1c4d8255342ac
treeb8bef8b9ffeb07d84bfe0f8b8e7c36f9aa2556f5
parentd0e92795997c8dce7ec804791e359a93211f9719
blk-ioprio: remove per-disk structure

ioprio works on the blk-cgroup level, all disks in the same cgroup
are the same, and the struct ioprio_blkg doesn't have anything in it.
Hence register the policy is enough, because cpd_alloc/free_fn will
be handled for each blk-cgroup, and there is no need to activate the
policy for disk. Hence remove blk_ioprio_init/exit and
ioprio_alloc/free_pd.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240719071506.158075-4-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
block/blk-ioprio.c
block/blk-ioprio.h