Skip to content

Commit 3ab67a9

Browse files
Xiongwei Songhtejun
authored andcommitted
cgroup/cpuset: Mark memory_spread_slab as obsolete
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>
1 parent 61a182a commit 3ab67a9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Documentation/admin-guide/cgroup-v1/cpusets.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ files describing that cpuset:
179179
- cpuset.mem_hardwall flag: is memory allocation hardwalled
180180
- cpuset.memory_pressure: measure of how much paging pressure in cpuset
181181
- cpuset.memory_spread_page flag: if set, spread page cache evenly on allowed nodes
182-
- cpuset.memory_spread_slab flag: if set, spread slab cache evenly on allowed nodes
182+
- cpuset.memory_spread_slab flag: OBSOLETE. Doesn't have any function.
183183
- cpuset.sched_load_balance flag: if set, load balance within CPUs on that cpuset
184184
- cpuset.sched_relax_domain_level: the searching range when migrating tasks
185185

kernel/cgroup/cpuset.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3897,6 +3897,7 @@ static struct cftype legacy_files[] = {
38973897
},
38983898

38993899
{
3900+
/* obsolete, may be removed in the future */
39003901
.name = "memory_spread_slab",
39013902
.read_u64 = cpuset_read_u64,
39023903
.write_u64 = cpuset_write_u64,

0 commit comments

Comments
 (0)