Commit 02c48170 authored by Yu Kuai's avatar Yu Kuai Committed by sanglipeng
Browse files

blk-cgroup: fix missing pd_online_fn() while activating policy

stable inclusion
from stable-v5.10.167
commit 19c9a2ba46996f2dbc5bfbf1e8f3dc50b347c91c
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7TH9O

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=19c9a2ba46996f2dbc5bfbf1e8f3dc50b347c91c



--------------------------------

[ Upstream commit e3ff8887 ]

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

Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20230103112833.2013432-1-yukuai1@huaweicloud.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 50d4c108
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment