From d39f72b8b675fc4751b4fac4cd5279a20262106c Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sun, 21 Feb 2021 19:59:25 +0100 Subject: [PATCH] cgroups: start stashing all fds Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 3632d788f..345f5f655 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1372,18 +1372,6 @@ __cgfsng_ops static void cgfsng_payload_finalize(struct cgroup_ops *ops) if (!ops->hierarchies) return; - for (int i = 0; ops->hierarchies[i]; i++) { - struct hierarchy *h = ops->hierarchies[i]; - /* - * we don't keep the fds for non-unified hierarchies around - * mainly because we don't make use of them anymore after the - * core cgroup setup is done but also because there are quite a - * lot of them. - */ - if (!is_unified_hierarchy(h)) - close_prot_errno_disarm(h->dfd_con); - } - /* * The checking for freezer support should obviously be done at cgroup * initialization time but that doesn't work reliable. The freezer -- 2.47.2