[Devel] [PATCH RHEL9 COMMIT] ve/cgroup: temporary ignore misc cgroup to let vzctl start container

Konstantin Khorenko khorenko at virtuozzo.com
Wed Oct 13 14:13:32 MSK 2021


The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-4.vz9.10.1
------>
commit 7f3e1ef61fc2a6dc3514dd9b64f595cc11388165
Author: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Date:   Wed Oct 13 14:13:32 2021 +0300

    ve/cgroup: temporary ignore misc cgroup to let vzctl start container
    
    We can revert it in case vzctl would create separate misc cgroup for
    container.
    
    https://jira.sw.ru/browse/PSBM-134002
    Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 kernel/cgroup/cgroup.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index c7435500a352..bb9bce3de45a 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -1990,6 +1990,10 @@ static inline bool is_virtualized_cgroup(struct cgroup *cgrp)
 	if (cgrp->subsys[debug_cgrp_id])
 		return false;
 #endif
+#if IS_ENABLED(CONFIG_CGROUP_MISC)
+	if (cgrp->subsys[misc_cgrp_id])
+		return false;
+#endif
 
 	if (cgrp->root->subsys_mask)
 		return true;


More information about the Devel mailing list