[Devel] [PATCH VZ10 v4 21/44] fixup! ve/cgroup: Move release_agent from system_wq to per-ve workqueues

Vladimir Riabchun vladimir.riabchun at virtuozzo.com
Wed Jun 3 00:10:39 MSK 2026


ve0 doesn't exist when !CONFIG_VE, use get_ve0().

https://virtuozzo.atlassian.net/browse/VSTOR-130116

Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
---
 kernel/cgroup/cgroup-v1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c
index 5c1b6a24ed51..dfa9b0c83082 100644
--- a/kernel/cgroup/cgroup-v1.c
+++ b/kernel/cgroup/cgroup-v1.c
@@ -930,7 +930,7 @@ void cgroup1_release_agent(struct work_struct *work)
 		ret = call_usermodehelper_ve(ve, argv[0], argv, envp,
 					     UMH_WAIT_EXEC);
 
-		if (ret < 0 && ve == &ve0)
+		if (ret < 0 && ve == get_ve0())
 			pr_warn_ratelimited("cgroup1_release_agent "
 					    "%s %s failed: %d\n",
 					    agentbuf, pathbuf, ret);
-- 
2.47.1



More information about the Devel mailing list