test/scheduler: Ignore failures while removing dummy cgroups

Upon removal, there's a small chance that new threads would jump into
these cgroups AFTER we read the list of PIDs to migrate. In such a
case, there may be some processes left preventing us from finally
removing the cgroup. Since we can't fully control that without
continuously reading the list, simply ignore it.

Fixes issue #2298

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Change-Id: I0d50b975742a8b15edd25c6b4e51ab337b017eaa
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10872
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Michal Berger 2021-12-28 15:52:28 +01:00 committed by Tomasz Zawadzki
parent d09690276e
commit 5d49965bb9

View File

@ -7,8 +7,8 @@ restore_cgroups() {
xtrace_disable
kill_in_cgroup "/cpuset/spdk"
remove_cgroup "/cpuset/spdk"
remove_cgroup "/cpuset/all"
remove_cpuset_cgroup
remove_cgroup "/cpuset/all" || true
remove_cpuset_cgroup || true
xtrace_restore
}