runtime-rs: moving only vCPU threads into sandbox controller
when overhead controller exists, just contrain vCPU threads
in sandbox controller
Fixes:#5760
@@ -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(())
