psi: dont alloc memory for psi by default
mainline inclusion from mainline-v6.0-rc1 commit 5f69a657 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8BCV4 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5f69a6577bc33d8f6d6bbe02bccdeb357b287f56 -------------------------------- Memory about struct psi_group is allocated by default for each cgroup even if psi_disabled is true, in this case, these allocated memory is waste, so alloc memory for struct psi_group only when psi_disabled is false. Signed-off-by:Chen Wandun <chenwandun@huawei.com> Acked-by:
Johannes Weiner <hannes@cmpxchg.org> Signed-off-by:
Tejun Heo <tj@kernel.org> Conflict: include/linux/cgroup-defs.h include/linux/cgroup.h kernel/cgroup/cgroup.c Signed-off-by:
Lu Jialin <lujialin4@huawei.com>
Loading
Please sign in to comment