]> www.infradead.org Git - users/hch/block.git/commit
blk-cgroup: check for pd_(alloc|free)_fn in blkcg_activate_policy()
authorYu Kuai <yukuai3@huawei.com>
Fri, 19 Jul 2024 07:15:04 +0000 (15:15 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 28 Jul 2024 22:47:51 +0000 (16:47 -0600)
commitae8650b45d1837aae117fa147aeef69540bb3fe8
treebc9d3e203e8bcbbd7bc81a179c687d389fd3792b
parent8400291e289ee6b2bf9779ff1c83a291501f017b
blk-cgroup: check for pd_(alloc|free)_fn in blkcg_activate_policy()

Currently all policies implement pd_(alloc|free)_fn, however, this is
not necessary for ioprio that only works for blkcg, not blkg.

There are no functional changes, prepare to cleanup activating ioprio
policy.

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