[lxc-devel] [lxc/master] cgfsng: remove freezer requirement

brauner on Github lxc-bot at linuxcontainers.org
Tue Nov 20 17:08:14 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 458 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20181120/45a0c28d/attachment.bin>
-------------- next part --------------
From 4143c201d1b06e27beb77707f7de9c6f4c9a6112 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Tue, 20 Nov 2018 18:06:43 +0100
Subject: [PATCH] cgfsng: remove freezer requirement

The freezer controller has been made optional in all other codepaths so
don't require it.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/cgroups/cgfsng.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c
index 1631319ec..ab99b47c5 100644
--- a/src/lxc/cgroups/cgfsng.c
+++ b/src/lxc/cgroups/cgfsng.c
@@ -703,11 +703,6 @@ static bool all_controllers_found(struct cgroup_ops *ops)
 	char **cur;
 	struct hierarchy **hlist = ops->hierarchies;
 
-	if (!controller_found(hlist, "freezer")) {
-		ERROR("No freezer controller mountpoint found");
-		return false;
-	}
-
 	if (!ops->cgroup_use)
 		return true;
 


More information about the lxc-devel mailing list