]> git.baikalelectronics.ru Git - kernel.git/commit
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:52:48 +0000 (07:52 +0100)
commit58bbc0edb4237ec06a82681adc6a78dc94eaa04d
treeb69621114936c68b79a0fd6b5a54bd07f17f9528
parent7d9b4b46905202fd21123a7965fc163c097e5365
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