Commit 012c419f authored by Michal Koutný's avatar Michal Koutný Committed by Tejun Heo
Browse files

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: default avatarMichal Koutný <mkoutny@suse.com>
Acked-by: default avatarWaiman Long <longman@redhat.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent a0dd8462
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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: