The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6659
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Closes #6658. Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From ac8e99439daaa88d8ae82f4bd793398babe69c68 Mon Sep 17 00:00:00 2001 From: Christian Brauner <christian.brau...@ubuntu.com> Date: Wed, 25 Dec 2019 17:06:18 +0100 Subject: [PATCH] cgroups: detect blkio.bfq.weight knob Closes #6658. Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com> --- lxd/cgroup/init.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lxd/cgroup/init.go b/lxd/cgroup/init.go index 248c244b52..0bacbb45b2 100644 --- a/lxd/cgroup/init.go +++ b/lxd/cgroup/init.go @@ -370,6 +370,11 @@ func init() { val, ok := cgControllers["blkio"] if ok && val == V1 && shared.PathExists("/sys/fs/cgroup/blkio/blkio.weight") { cgControllers["blkio.weight"] = V1 + } else { + val, ok := cgControllers["blkio"] + if ok && val == V1 && shared.PathExists("/sys/fs/cgroup/blkio/blkio.bfq.weight") { + cgControllers["blkio.weight"] = V1 + } } val, ok = cgControllers["memory"]
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel