mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
vircgroup: fix bug in virCgroupEnableMissingControllers
If we are on host with systemd we need to build cgroup hierarchy ourselves for controllers that are not managed by systemd. As a starting parent we need to force root group because virCgroupMakeGroup() takes that parent in order to inherit values for cpuset controller. By default cpuset controller is managed by systemd so we will never hit the issue but for v2 cgroups we need to use parent cgroup every time. Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
1602aa28f8
commit
63b4ed0dd3
@ -1491,7 +1491,7 @@ virCgroupEnableMissingControllers(char *path,
|
||||
int ret = -1;
|
||||
|
||||
if (virCgroupNew(pidleader,
|
||||
"",
|
||||
"/",
|
||||
NULL,
|
||||
controllers,
|
||||
&parent) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user