From: Avinesh Kumar <akumar@suse.de>
To: ltp@lists.linux.it
Cc: mkoutny@suse.com
Subject: [LTP] [PATCH] cgroup_regression_test: Use unique names for hierarchies in each test
Date: Thu, 10 Jul 2025 10:17:09 +0200 [thread overview]
Message-ID: <20250710082000.11641-1-akumar@suse.de> (raw)
Recently we started having failures where mounting cgroup in quick
succession after umount of same named hierarchy fails with EBUSY
cgroup_regression_test 1 TPASS: no kernel bug was found
mount: /tmp/LTP_cgroup_regression_test.ZFwS3JkX4c/cgroup: cgroup already mounted or mount point busy.
dmesg(1) may have more information after failed mount system call.
cgroup_regression_test 2 TFAIL: Failed to mount cgroup filesystem
Updating test to use unique names for cgroup hierarchies in each
subtest.
Suggested-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Avinesh Kumar <akumar@suse.de>
---
.../controllers/cgroup/cgroup_regression_test.sh | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh b/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh
index 276231fe8..c1bf4810f 100755
--- a/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh
+++ b/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh
@@ -93,7 +93,7 @@ test1()
cgroup_regression_fork_processes &
sleep 1
- mount -t cgroup -o none,name=foo cgroup cgroup/
+ mount -t cgroup -o none,name=foo1 cgroup cgroup/
if [ $? -ne 0 ]; then
tst_res TFAIL "failed to mount cgroup filesystem"
kill -TERM $!
@@ -118,7 +118,7 @@ test2()
local val1
local val2
- mount -t cgroup -o none,name=foo cgroup cgroup/
+ mount -t cgroup -o none,name=foo2 cgroup cgroup/
if [ $? -ne 0 ]; then
tst_res TFAIL "Failed to mount cgroup filesystem"
return
@@ -204,7 +204,7 @@ test4()
return
fi
- mount -t cgroup -o none,name=foo cgroup cgroup/
+ mount -t cgroup -o none,name=foo4 cgroup cgroup/
mkdir cgroup/0
rmdir cgroup/0
tst_umount $PWD/cgroup
@@ -309,7 +309,7 @@ test_7_2()
{
local subsys=$1
- mount -t cgroup -o none,name=foo cgroup cgroup/
+ mount -t cgroup -o none,name=foo72 cgroup cgroup/
if [ $? -ne 0 ]; then
tst_res TFAIL "failed to mount cgroup"
return
@@ -370,7 +370,7 @@ test7()
#---------------------------------------------------------------------------
test8()
{
- mount -t cgroup -o none,name=foo cgroup cgroup/
+ mount -t cgroup -o none,name=foo8 cgroup cgroup/
if [ $? -ne 0 ]; then
tst_res TFAIL "failed to mount cgroup filesystem"
return
--
2.43.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2025-07-10 8:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-10 8:17 Avinesh Kumar [this message]
2025-07-10 8:24 ` [LTP] [PATCH] cgroup_regression_test: Use unique names for hierarchies in each test Avinesh Kumar
2025-07-10 8:47 ` Andrea Cervesato via ltp
2025-07-10 9:00 ` Cyril Hrubis
2025-07-11 10:36 ` Andrea Cervesato via ltp
[not found] ` <mqkxe24qlrcpb5jxgigbiarxxgemqjw3rmgnsprn55ubghrrda@etaozcz2nemy>
2025-07-11 12:41 ` Andrea Cervesato via ltp
[not found] ` <svs6pl6jmibp7uylvofkia5smvu2cuezfvnawlgkmjiulbrpfm@w7s7dlxxltap>
2025-07-14 11:56 ` Andrea Cervesato via ltp
2025-07-30 11:32 ` Avinesh Kumar
2025-07-30 11:43 ` Martin Doucha
2025-07-30 11:48 ` Michal Koutný via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250710082000.11641-1-akumar@suse.de \
--to=akumar@suse.de \
--cc=ltp@lists.linux.it \
--cc=mkoutny@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.