]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cgroup/cpuset-v1: Add deprecation messages to mem_exclusive and mem_hardwall
authorMichal Koutný <mkoutny@suse.com>
Tue, 11 Mar 2025 12:36:22 +0000 (13:36 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 11 Mar 2025 19:22:54 +0000 (09:22 -1000)
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ý <mkoutny@suse.com>
Acked-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset-v1.c

index fcf3fdac21a2dbfcbbcbe86d89312c1bb40da7f4..620e07ffd61f1c1eec9c9ccb34ec896742e96a47 100644 (file)
@@ -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: