[LTP] [PATCH v1] cgroup_fj_common.sh: Disable cgroup controller in cleanup function
Wei Gao
wegao@suse.com
Wed Jun 26 08:52:57 CEST 2024
If you run "cgroup_fj_function.sh cpuset;cpuset_base_ops_testset.sh"
you will encounter following error and cpuset_base_ops will be skipped:
cpuset_base_ops 1 TCONF: Could not mount cgroup filesystem with cpuset on /dev/cpuset
Signed-off-by: Wei Gao <wegao@suse.com>
---
testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh
index 6d5586534..e866641ba 100755
--- a/testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh
+++ b/testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh
@@ -76,6 +76,8 @@ common_cleanup()
[ -d "$start_path" ] && find "$start_path" -depth -type d -exec rmdir '{}' \;
cgroup_cleanup
+
+ [ "$cgroup_version" = "2" ] && ROD echo "-$subsystem" \> "/sys/fs/cgroup/cgroup.subtree_control"
}
. cgroup_lib.sh
--
2.35.3
More information about the ltp
mailing list