• P
    util: vircgroup: improve controller detection · d3007c84
    Pavel Hrdina 提交于
    This affects only cgroups v2 where enabled controllers are not based on
    available mount points but on the list provided in cgroup.controllers
    file.  However, moving it will fill in placement as well, so it needs
    to be freed together with mount point if we don't need that controller.
    
    Before this patch we were assuming that all controllers available in
    root cgroup where available in all other sub-cgroups which was wrong.
    
    In order to fix it we need to move the cgroup controllers detection
    after cgroup placement was prepared in order to build correct path for
    cgroup.controllers file.
    Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
    Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
    d3007c84
vircgroupv2.c 48.7 KB