Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix kmem accouting when use with cgroupsPath
Fixes: opencontainers#1347 Fixes: opencontainers#1083 The root cause of opencontainers#1083 is because we're joining an existed cgroup whose kmem accouting is not initialized, and it has child cgroup or tasks in it. Fix it by checking if the cgroup is first time created, and we should enable kmem accouting if the cgroup is craeted by libcontainer with or without kmem limit configed. Otherwise we'll get issue like opencontainers#1347 Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
- Loading branch information