From: Michal Koutný Date: Tue, 11 Mar 2025 12:36:19 +0000 (+0100) Subject: cgroup/cpuset-v1: Add deprecation messages to memory_spread_page and memory_spread_slab X-Git-Tag: v6.15-rc1~228^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=012c419f8d248fc92915a6d0998802ccd15cded6;p=thirdparty%2Fkernel%2Flinux.git cgroup/cpuset-v1: Add deprecation messages to memory_spread_page and memory_spread_slab There is MPOL_INTERLEAVE for user explicit allocations. Deprecate spreading of allocations that users carry out unwittingly. Use straight warning level for slab spreading since such a knob is unnecessarily intertwined with slab allocator. 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 7d310d8bb1ad2..fcf3fdac21a2d 100644 --- a/kernel/cgroup/cpuset-v1.c +++ b/kernel/cgroup/cpuset-v1.c @@ -482,9 +482,11 @@ static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft, cpuset_memory_pressure_enabled = !!val; break; case FILE_SPREAD_PAGE: + pr_info_once("cpuset.%s is deprecated\n", cft->name); retval = cpuset_update_flag(CS_SPREAD_PAGE, cs, val); break; case FILE_SPREAD_SLAB: + pr_warn_once("cpuset.%s is deprecated\n", cft->name); retval = cpuset_update_flag(CS_SPREAD_SLAB, cs, val); break; default: