The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/3385

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) ===
Fixes: https://discuss.linuxcontainers.org/t/memory-limits-no-longer-being-applied/7429/7
Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From 92afbe74c4829d8212a059e851d952a355c24396 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@ubuntu.com>
Date: Wed, 15 Apr 2020 23:15:49 +0200
Subject: [PATCH] cgroups: fix cgroup limit braino

Fixes: 
https://discuss.linuxcontainers.org/t/memory-limits-no-longer-being-applied/7429/7
Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
---
 src/lxc/cgroups/cgfsng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c
index cabc39fb34..37309c9ead 100644
--- a/src/lxc/cgroups/cgfsng.c
+++ b/src/lxc/cgroups/cgfsng.c
@@ -2848,7 +2848,7 @@ __cgfsng_ops static bool 
cgfsng_setup_limits_legacy(struct cgroup_ops *ops,
        if (!ops->hierarchies)
                return ret_set_errno(false, EINVAL);
 
-       if (!pure_unified_layout(ops))
+       if (pure_unified_layout(ops))
                return log_warn_errno(true, EINVAL, "Ignoring legacy cgroup 
limits on pure cgroup2 system");
 
        sorted_cgroup_settings = sort_cgroup_settings(cgroup_settings);
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to