Skip to contentSkip to conversation

cgroup_fj_common.sh: Disable cgroup controller in cleanup function

PATCH In review Wei Gao via ltp 2 participants 2 messages Jun 26, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cgroup_fj_common.sh: Disable cgroup controller in cleanup function

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

---
 testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh | 2 ++
 1 file changed, 2 insertions(+)
testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh +2 -0
index 6d5586534..e866641ba 100755
@@ -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
Signature · 5 lines
2.35.3


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Good catch, patch merged.

Signature · 5 lines
Regards,
Li Wang

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp