Skip to content

Commit 166dfc4

Browse files
committed
fixup! cgroup: Use kernel command line to disable memory cgroup
cgroup features are distinct from cgroup subsystems - handle them correctly. Signed-off-by: Phil Elwell <[email protected]>
1 parent e442e5c commit 166dfc4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

kernel/cgroup/cgroup.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6766,11 +6766,19 @@ static int __init cgroup_enable(char *str)
67666766
strcmp(token, ss->legacy_name))
67676767
continue;
67686768

6769-
cgroup_feature_disable_mask &= ~(1 << i);
67706769
static_branch_enable(cgroup_subsys_enabled_key[i]);
67716770
pr_info("Enabling %s control group subsystem\n",
67726771
ss->name);
67736772
}
6773+
6774+
for (i = 0; i < OPT_FEATURE_COUNT; i++) {
6775+
if (strcmp(token, cgroup_opt_feature_names[i]))
6776+
continue;
6777+
cgroup_feature_disable_mask &= ~(1 << i);
6778+
pr_info("Enabling %s control group feature\n",
6779+
cgroup_opt_feature_names[i]);
6780+
break;
6781+
}
67746782
}
67756783
return 1;
67766784
}

0 commit comments

Comments
 (0)