]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vircgroupv2: properly detect empty tasks
authorPavel Hrdina <phrdina@redhat.com>
Tue, 13 Oct 2020 11:25:22 +0000 (13:25 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 3 Nov 2020 20:26:32 +0000 (21:26 +0100)
commite85cfb095a6dcddb24d4fdb6cd1781fe2f11f4f7
tree2f3ea1fab0d5b1024f0e73f3a3211432c1aead79
parent09c12ba248e96211ba6fe006eb9e2ebc4e034c67
vircgroupv2: properly detect empty tasks

With cgroups v2 the file cgroup.procs will never be empty if threading
is enabled as it will always have ID of all processes even if all
threads of the processes are moved to sub-cgroups. If that happens the
file cgroup.threads will be empty.

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