From 2edbe389d872d4c3ca3c06dd1895ce527df1af32 Mon Sep 17 00:00:00 2001 From: gaohuatao Date: Fri, 25 Nov 2022 15:22:14 +0800 Subject: [PATCH] runtime-rs: moving only vCPU threads into sandbox controller when overhead controller exists, just contrain vCPU threads in sandbox controller Fixes:#5760 Signed-off-by: gaohuatao --- src/runtime-rs/crates/resource/src/cgroups/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime-rs/crates/resource/src/cgroups/mod.rs b/src/runtime-rs/crates/resource/src/cgroups/mod.rs index beb4850088..7bcb394492 100644 --- a/src/runtime-rs/crates/resource/src/cgroups/mod.rs +++ b/src/runtime-rs/crates/resource/src/cgroups/mod.rs @@ -179,7 +179,7 @@ impl CgroupsResource { // All vCPU threads move to the sandbox controller. for tid in tids { self.cgroup_manager - .add_task_by_tgid(CgroupPid { pid: *tid as u64 })? + .add_task(CgroupPid { pid: *tid as u64 })? } Ok(())