Blob Blame History Raw
From 6b4f272c7de58d13d89a7ebb981b43ac53c41198 Mon Sep 17 00:00:00 2001
Message-Id: <6b4f272c7de58d13d89a7ebb981b43ac53c41198@dist-git>
From: Pavel Hrdina <phrdina@redhat.com>
Date: Mon, 1 Jul 2019 17:07:52 +0200
Subject: [PATCH] vircgroup: register cgroup v2 backend
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

All mandatory callbacks are implemented for cgroup v2 backend so we
can register it now.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
(cherry picked from commit a77f5326919e0d79f01686762ecc8656e4e6adc9)

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Message-Id: <9d7990e568c23aa43ccd85011e845c840db97a27.1561993100.git.phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
---
 src/util/vircgroupbackend.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/vircgroupbackend.c b/src/util/vircgroupbackend.c
index 79fe6cb73d..7ee39ac8ca 100644
--- a/src/util/vircgroupbackend.c
+++ b/src/util/vircgroupbackend.c
@@ -52,6 +52,7 @@ virCgroupBackendRegister(virCgroupBackendPtr backend)
 static void
 virCgroupBackendOnceInit(void)
 {
+    virCgroupV2Register();
     virCgroupV1Register();
 }
 
-- 
2.22.0