From: Petr Vorel <pvorel@suse.cz>
To: Richard Palethorpe <rpalethorpe@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] controllers/cpuset: Make mount failure TCONF
Date: Fri, 27 Oct 2023 13:01:16 +0200 [thread overview]
Message-ID: <20231027110116.GA649751@pevik> (raw)
In-Reply-To: <20231027104951.32464-1-rpalethorpe@suse.com>
Hi Richie,
> It appears that if the subsystem is available under V2 then mounting
> the V1 can fail. Probably when the V2 has processes assigned to a
> group it controls.
Sounds likely, but it would be good to check this in the kernel code or with
kernel cgroup developers.
> The test should scan the system and find the existing CGroup
> hierarchies and work with those. This can be done by converting the
> test to tst_cgctl or rewriting it in C. It's not clear what the best
> course of action would be.
> For now, this commit just changes the result to TCONF.
+1 (suppose it's the case of already mounted under v2)
Reviewed-by: Petr Vorel <pvorel@suse.cz>
> Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
> ---
> testcases/kernel/controllers/cpuset/cpuset_funcs.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
> index 0cfa0c17e..312654a9d 100755
> --- a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
> +++ b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
> @@ -165,7 +165,7 @@ setup()
> mount -t cgroup -o cpuset cpuset "$CPUSET" 2> /dev/null
> if [ $? -ne 0 ]; then
> cleanup
> - tst_brkm TFAIL "Could not mount cgroup filesystem with"\
> + tst_brkm TCONF "Could not mount cgroup filesystem with"\
> " cpuset on $CPUSET..Exiting test"
nit: I'd cleanup the message.
tst_brkm TCONF "Could not mount cgroup filesystem with cpuset on $CPUSET"
Kind regards,
Petr
> fi
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2023-10-27 11:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-27 10:49 [LTP] [PATCH] controllers/cpuset: Make mount failure TCONF Richard Palethorpe via ltp
2023-10-27 11:01 ` Petr Vorel [this message]
[not found] ` <ZTvH_DptjIrZJx-A@yuki>
2023-10-27 17:45 ` Petr Vorel
2023-10-30 10:39 ` Richard Palethorpe
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=20231027110116.GA649751@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=rpalethorpe@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox