Commit 7a1bac1d authored by Chen Wandun's avatar Chen Wandun Committed by Lu Jialin
Browse files

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: default avatarChen Wandun <chenwandun@huawei.com>
Acked-by: default avatarJohannes Weiner <hannes@cmpxchg.org>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Conflict:
	include/linux/cgroup-defs.h
	include/linux/cgroup.h
	kernel/cgroup/cgroup.c
Signed-off-by: default avatarLu Jialin <lujialin4@huawei.com>
parent 09a65211
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment