runc/libcontainer/cgroups
Qiang Huang 6fa490c664 Remove use_hierarchy check when set kernel memory
Kernel memory cannot be set in these circumstances (before kernel 4.6):
1. kernel memory is not initialized, and there are tasks in cgroup
2. kernel memory is not initialized, and use_hierarchy is enabled,
   and there are sub-cgroups

While we don't need to cover case 2 because when we set kernel
memory in runC, it's either:
- in Apply phase when we create the container, and in this case,
  set kernel memory would definitely be valid;
- or in update operation, and in this case, there would be tasks
  in cgroup, we only need to check if kernel memory is initialized
  or not.

Even if we want to check use_hierarchy, we need to check sub-cgroups
as well, but for here, we can just leave it aside.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2016-05-28 15:22:58 +08:00
..
fs Remove use_hierarchy check when set kernel memory 2016-05-28 15:22:58 +08:00
systemd Allow updating kmem.limit_in_bytes if initialized at cgroup creation 2016-05-06 08:05:15 -07:00
cgroups.go fix typos 2016-03-25 11:11:48 +08:00
cgroups_test.go Rework ParseCgroupFile 2015-09-10 20:59:27 +03:00
cgroups_unsupported.go Move libcontainer into subdirectory 2015-06-21 19:29:15 -07:00
stats.go Fix trivial style errors reported by `go vet` and `golint` 2016-04-12 08:13:16 +00:00
utils.go Correct outdated URL 2016-04-29 10:44:27 -05:00
utils_test.go Adding linux label to test file 2016-02-25 07:52:32 +05:30