blk-cgroup: fix missing pd_online_fn() while activating policy
authorYu Kuai <yukuai3@huawei.com>
Tue, 3 Jan 2023 11:28:33 +0000 (19:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:59:00 +0000 (07:59 +0100)
commit6d7686cc11b76019db57f9b2dc555f4023d097a1
tree9935cb6d918783ab7a540d6483d2426f502ed5f2
parent2144859229c1e74f52d3ea067338d314a83a8afb
blk-cgroup: fix missing pd_online_fn() while activating policy

[ Upstream commit e3ff8887e7db757360f97634e0d6f4b8e27a8c46 ]

If the policy defines pd_online_fn(), it should be called after
pd_init_fn(), like blkg_create().

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20230103112833.2013432-1-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-cgroup.c