[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH v2 0/2] Fix problems on using lxc with cgroup ns subsystem

The patch set fixes two problems of lxc that happen when ns
subsystem is enabled with memory subsystem at the same time.
The fist problem is that cgroup subdirectories that are
automatically created by ns subsystem remain after domain
shutdown. The second problem is that memory usage is not
properly accounted.

v2 fixes a bunch of defects pointed out by Eric Blake.

Changes from v1:
- correct readdir error handling
- avoid stack-allocating PATH_MAX, use virAsprintf() instead
- add missing closedir()
- ensure _() in the string of VIR_ERROR
- change the flag of virCgroupMakeGroup from int to bool
- fix typo in commit log
- change some 'child' to 'descendant' in commit log to make
  representation proper

Ryota Ozaki (2):
  cgroup: Change virCgroupRemove to remove all descendant groups at first
  cgroup: Enable memory.use_hierarchy of cgroup for domain

 src/util/cgroup.c |  122 +++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 114 insertions(+), 8 deletions(-)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]