]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cgroup/cpuset-v1: Add deprecation messages to memory_migrate
authorMichal Koutný <mkoutny@suse.com>
Tue, 11 Mar 2025 12:36:23 +0000 (13:36 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 11 Mar 2025 19:22:54 +0000 (09:22 -1000)
Memory migration (between cgroups) was given up in v2 due to performance
reasons of its implementation. Migration between NUMA nodes within one
memcg may still make sense to modify affinity at runtime though.

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 620e07ffd61f1c1eec9c9ccb34ec896742e96a47..a1bbbd345041e74b89250c59fdd64c015c36a8a2 100644 (file)
@@ -477,6 +477,7 @@ static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft,
                retval = cpuset_update_flag(CS_SCHED_LOAD_BALANCE, cs, val);
                break;
        case FILE_MEMORY_MIGRATE:
+               pr_info_once("cpuset.%s is deprecated\n", cft->name);
                retval = cpuset_update_flag(CS_MEMORY_MIGRATE, cs, val);
                break;
        case FILE_MEMORY_PRESSURE_ENABLED: