[libvirt] [PATCH 2/5] util: vircgroup: improve controller detection

Ján Tomko jtomko at redhat.com
Fri Jun 21 09:55:57 UTC 2019


On Thu, Jun 20, 2019 at 01:25:42PM +0200, Pavel Hrdina wrote:
>This affects only cgroups v2 where enabled controllers are not based on
>available mount points but on the list provided in cgroup.controllers
>file.
>
>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: Pavel Hrdina <phrdina at redhat.com>
>---
> src/util/vircgroup.c   | 32 ++++++++++++++++----------------
> src/util/vircgroupv2.c |  5 +++--
> 2 files changed, 19 insertions(+), 18 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190621/ed95f206/attachment-0001.sig>


More information about the libvir-list mailing list