[Devel] [RFC 19/54] cgroup-defs: fix CONFIG_VE=n build

Eva Kurchatova eva.kurchatova at virtuozzo.com
Wed Apr 29 22:58:19 MSK 2026


Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
---
 include/linux/cgroup-defs.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h
index 8f1d15582f99..582fc272fd97 100644
--- a/include/linux/cgroup-defs.h
+++ b/include/linux/cgroup-defs.h
@@ -569,12 +569,17 @@ struct cgroup {
 	/* used to wait for offlining of csses */
 	wait_queue_head_t offline_waitq;
 
+#ifdef CONFIG_VE
 	/*
 	 * Linked list running through all cgroups that can
 	 * potentially be reaped by the release agent. Protected by
 	 * release_list_lock
 	 */
 	struct list_head release_list;
+#else
+	/* used to schedule release agent */
+	struct work_struct release_agent_work;
+#endif
 
 	/* used to track pressure stalls */
 	struct psi_group *psi;
@@ -630,6 +635,11 @@ struct cgroup_root {
 	/* Hierarchy-specific flags */
 	unsigned int flags;
 
+#ifndef CONFIG_VE
+	/* The path to use for release notifications. */
+	char release_agent_path[PATH_MAX];
+#endif
+
 	/* The name for this hierarchy - may be empty */
 	char name[MAX_CGROUP_ROOT_NAMELEN];
 };
-- 
2.54.0



More information about the Devel mailing list