diff options
author | Li Zefan <lizefan@huawei.com> | 2014-06-05 13:16:30 +0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-06-05 17:52:51 +0400 |
commit | c731ae1d0f02a300697a8b1564780ad28a6c2013 (patch) | |
tree | 4887aaada0e6f6328449bc41d4b4e2b911c29df2 /block | |
parent | 1f779fb28aa07350d72976d304591d216ca86f0e (diff) | |
download | linux-c731ae1d0f02a300697a8b1564780ad28a6c2013.tar.xz |
cgroup: disallow disabled controllers on the default hierarchy
After booting with cgroup_disable=memory, I still saw memcg files
in the default hierarchy, and I can write to them, though it won't
take effect.
# dmesg
...
Disabling memory control group subsystem
...
# mount -t cgroup -o __DEVEL__sane_behavior xxx /cgroup
# ls /cgroup
...
memory.failcnt memory.move_charge_at_immigrate
memory.force_empty memory.numa_stat
memory.limit_in_bytes memory.oom_control
...
# cat /cgroup/memory.usage_in_bytes
0
tj: Minor comment update.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions