cgroup/cpuset: Mark memory_spread_slab as obsolete
authorXiongwei Song <xiongwei.song@windriver.com>
Thu, 29 Feb 2024 14:20:07 +0000 (22:20 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 29 Feb 2024 20:28:19 +0000 (10:28 -1000)
We've removed the SLAB allocator, cpuset_do_slab_mem_spread() and
SLAB_MEM_SPREAD, memory_spread_slab is a no-op now. We can mark
memory_spread_slab as obsolete in case someone still wants to use it after
cpuset_do_slab_mem_spread() removed. For more details, please check [1].

[1] https://lore.kernel.org/lkml/32bc1403-49da-445a-8c00-9686a3b0d6a3@redhat.com/T/#m8e292e21b00f95a4bb8086371fa7387fa4ea8f60

tj: Description and cosmetic updates.

Signed-off-by: Xiongwei Song <xiongwei.song@windriver.com>
Acked-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Documentation/admin-guide/cgroup-v1/cpusets.rst
kernel/cgroup/cpuset.c

index ae646d621a8ab6d208585bf0fdcd53e583ff76b7..7d3415eea05d027572241bd8150762e159577ed8 100644 (file)
@@ -179,7 +179,7 @@ files describing that cpuset:
  - cpuset.mem_hardwall flag:  is memory allocation hardwalled
  - cpuset.memory_pressure: measure of how much paging pressure in cpuset
  - cpuset.memory_spread_page flag: if set, spread page cache evenly on allowed nodes
- - cpuset.memory_spread_slab flag: if set, spread slab cache evenly on allowed nodes
+ - cpuset.memory_spread_slab flag: OBSOLETE. Doesn't have any function.
  - cpuset.sched_load_balance flag: if set, load balance within CPUs on that cpuset
  - cpuset.sched_relax_domain_level: the searching range when migrating tasks
 
index ba36c073304a3eee081b770b12dacb0e5b1a60cd..c940cf01b148068a3dfd5bc847999210f7ff486d 100644 (file)
@@ -3897,6 +3897,7 @@ static struct cftype legacy_files[] = {
        },
 
        {
+               /* obsolete, may be removed in the future */
                .name = "memory_spread_slab",
                .read_u64 = cpuset_read_u64,
                .write_u64 = cpuset_write_u64,