From: Michal Koutný Date: Tue, 11 Mar 2025 12:36:22 +0000 (+0100) Subject: cgroup/cpuset-v1: Add deprecation messages to mem_exclusive and mem_hardwall X-Git-Tag: v6.15-rc1~228^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=313819279289672ddf765331aca143d945ac19d5;p=thirdparty%2Flinux.git cgroup/cpuset-v1: Add deprecation messages to mem_exclusive and mem_hardwall The concept of exclusive memory affinity may require complex approaches like with cpuset v2 cpu partitions. There is so far no implementation in cpuset v2. Specific kernel memory affinity may cause unintended (global) bottlenecks like kmem limits. Signed-off-by: Michal Koutný Acked-by: Waiman Long Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cpuset-v1.c b/kernel/cgroup/cpuset-v1.c index fcf3fdac21a2d..620e07ffd61f1 100644 --- a/kernel/cgroup/cpuset-v1.c +++ b/kernel/cgroup/cpuset-v1.c @@ -465,9 +465,11 @@ static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft, retval = cpuset_update_flag(CS_CPU_EXCLUSIVE, cs, val); break; case FILE_MEM_EXCLUSIVE: + pr_info_once("cpuset.%s is deprecated\n", cft->name); retval = cpuset_update_flag(CS_MEM_EXCLUSIVE, cs, val); break; case FILE_MEM_HARDWALL: + pr_info_once("cpuset.%s is deprecated\n", cft->name); retval = cpuset_update_flag(CS_MEM_HARDWALL, cs, val); break; case FILE_SCHED_LOAD_BALANCE: