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

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Tue Oct 12 19:22:09 MSK 2021


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;
-- 
2.31.1



More information about the Devel mailing list