]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cgroup: provide cgroup_nov1= to disable controllers in v1 mounts
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 11 Feb 2016 18:34:49 +0000 (13:34 -0500)
committerTejun Heo <tj@kernel.org>
Fri, 12 Feb 2016 20:01:45 +0000 (15:01 -0500)
commit223ffb29f9723a4b485cacf6dc7e6d639fffc322
treeed4c257525ad1a5550b5e44896688282842841b4
parente11b956e9ebef098cc4f81964a1f57e40fe75cd4
cgroup: provide cgroup_nov1= to disable controllers in v1 mounts

Testing cgroup2 can be painful with system software automatically
mounting and populating all cgroup controllers in v1 mode. Sometimes
they can be unmounted from rc.local, sometimes even that is too late.

Provide a commandline option to disable certain controllers in v1
mounts, so that they remain available for cgroup2 mounts.

Example use:

cgroup_no_v1=memory,cpu
cgroup_no_v1=all

Disabling will be confirmed at boot-time as such:

[    0.013770] Disabling cpu control group subsystem in v1 mounts
[    0.016004] Disabling memory control group subsystem in v1 mounts

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup.c