]> xenbits.xensource.com Git - libvirt.git/commit
util: vircgroupv2: don't error out if enabling controller fails
authorPavel Hrdina <phrdina@redhat.com>
Thu, 20 Jun 2019 11:10:20 +0000 (13:10 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 26 Jun 2019 11:34:01 +0000 (13:34 +0200)
commit1d49cdcd116186e079db5668893da17f56141652
treea544dd875778ac32ff5a7e4d64033c306c08a0a9
parent29a94a3fefeea0fb29b0b9f485c83c49b5bdae71
util: vircgroupv2: don't error out if enabling controller fails

Currently CPU controller cannot be enabled if there is any real-time
task running and is assigned to non-root cgroup which is the case on
several distributions with graphical environment.

Instead of erroring out treat it as the controller is not available.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/vircgroupv2.c