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

Peter Krempa pkrempa at redhat.com
Wed Jun 26 08:25:44 UTC 2019


On Tue, Jun 25, 2019 at 13:16:21 +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.  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: Pavel Hrdina <phrdina at redhat.com>
> ---
> 
> Notes:
>     Changes in v3:
>         - Moving the detection after placement means we need to free it
>           together with mount point if that controller is not required.

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


More information about the libvir-list mailing list