Skip to content

Commit 012c419

Browse files
Werkovhtejun
authored andcommitted
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ý <[email protected]> Acked-by: Waiman Long <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent a0dd846 commit 012c419

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/cgroup/cpuset-v1.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,11 @@ static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft,
482482
cpuset_memory_pressure_enabled = !!val;
483483
break;
484484
case FILE_SPREAD_PAGE:
485+
pr_info_once("cpuset.%s is deprecated\n", cft->name);
485486
retval = cpuset_update_flag(CS_SPREAD_PAGE, cs, val);
486487
break;
487488
case FILE_SPREAD_SLAB:
489+
pr_warn_once("cpuset.%s is deprecated\n", cft->name);
488490
retval = cpuset_update_flag(CS_SPREAD_SLAB, cs, val);
489491
break;
490492
default:

0 commit comments

Comments
 (0)