|
Pablo Greco |
40546a |
From 281c86a0556bd04ad2b3d7264f36c109c646a692 Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
40546a |
Message-Id: <281c86a0556bd04ad2b3d7264f36c109c646a692@dist-git>
|
|
Pablo Greco |
40546a |
From: Pavel Hrdina <phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
Date: Mon, 1 Jul 2019 17:08:18 +0200
|
|
Pablo Greco |
40546a |
Subject: [PATCH] util: vircgroupv2: use any controller to create thread
|
|
Pablo Greco |
40546a |
directory
|
|
Pablo Greco |
40546a |
MIME-Version: 1.0
|
|
Pablo Greco |
40546a |
Content-Type: text/plain; charset=UTF-8
|
|
Pablo Greco |
40546a |
Content-Transfer-Encoding: 8bit
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
The assumption that CPU controller would be always enabled is wrong, we
|
|
Pablo Greco |
40546a |
should use any available controller to create a new sub-cgroup.
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
Pablo Greco |
40546a |
(cherry picked from commit 535bdf83c0b0372e725650c56b4996ff83406254)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
Message-Id: <c66a8d07101971e7842f3a6fa8a84373a0c9e90f.1561993100.git.phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
Pablo Greco |
40546a |
---
|
|
Pablo Greco |
40546a |
src/util/vircgroupv2.c | 2 +-
|
|
Pablo Greco |
40546a |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
diff --git a/src/util/vircgroupv2.c b/src/util/vircgroupv2.c
|
|
Pablo Greco |
40546a |
index 10f8a9bbdf..04cbadd6a6 100644
|
|
Pablo Greco |
40546a |
--- a/src/util/vircgroupv2.c
|
|
Pablo Greco |
40546a |
+++ b/src/util/vircgroupv2.c
|
|
Pablo Greco |
40546a |
@@ -398,7 +398,7 @@ virCgroupV2MakeGroup(virCgroupPtr parent ATTRIBUTE_UNUSED,
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
if (create) {
|
|
Pablo Greco |
40546a |
if (flags & VIR_CGROUP_THREAD) {
|
|
Pablo Greco |
40546a |
- if (virCgroupSetValueStr(group, VIR_CGROUP_CONTROLLER_CPU,
|
|
Pablo Greco |
40546a |
+ if (virCgroupSetValueStr(group, controller,
|
|
Pablo Greco |
40546a |
"cgroup.type", "threaded") < 0) {
|
|
Pablo Greco |
40546a |
return -1;
|
|
Pablo Greco |
40546a |
}
|
|
Pablo Greco |
40546a |
--
|
|
Pablo Greco |
40546a |
2.22.0
|
|
Pablo Greco |
40546a |
|