]> git.baikalelectronics.ru Git - kernel.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)
commit2bfca8b73de35a886f0b64b89b29037fb996c5f4
treeed4c257525ad1a5550b5e44896688282842841b4
parenta2edfb99e35e969357b81823272117d6907528af
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