diff mbox series

[v1] cgroup_fj_common.sh: Disable cgroup controller in cleanup function

Message ID 20240626065257.14367-1-wegao@suse.com
State Accepted
Headers show
Series [v1] cgroup_fj_common.sh: Disable cgroup controller in cleanup function | expand

Commit Message

Wei Gao June 26, 2024, 6:52 a.m. UTC
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(+)

Comments

Li Wang June 26, 2024, 11:17 a.m. UTC | #1
Good catch, patch merged.
diff mbox series

Patch

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