From: Michal Koutný Date: Tue, 11 Mar 2025 12:36:23 +0000 (+0100) Subject: cgroup/cpuset-v1: Add deprecation messages to memory_migrate X-Git-Tag: v6.15-rc1~228^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db4dc20c1140ab56dc31a73c4b48a50fad7a5634;p=thirdparty%2Fkernel%2Flinux.git cgroup/cpuset-v1: Add deprecation messages to memory_migrate 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ý Acked-by: Waiman Long Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cpuset-v1.c b/kernel/cgroup/cpuset-v1.c index 620e07ffd61f1..a1bbbd345041e 100644 --- a/kernel/cgroup/cpuset-v1.c +++ b/kernel/cgroup/cpuset-v1.c @@ -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: