]> xenbits.xensource.com Git - libvirt.git/commit
vircgroupv2: move task into cgroup before enabling controllers
authorPavel Hrdina <phrdina@redhat.com>
Wed, 4 Nov 2020 18:55:44 +0000 (19:55 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 10 Feb 2021 12:37:12 +0000 (13:37 +0100)
commit382fa15cde538cba3888a89b301fd3d9a0ce69ea
treedbe07a002baab357686ec121e666d2a37371a715
parent5f56dd7c83493f14a471bb9e33415b04329a08bf
vircgroupv2: move task into cgroup before enabling controllers

When we create a new child cgroup and the parent cgroup has any process
attached to it enabling controllers for the child cgroup fails with
error. We need to move the process into the child cgroup first before
enabling any controllers.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/vircgroup.c
src/util/vircgroupbackend.h
src/util/vircgroupv1.c
src/util/vircgroupv2.c