Skip to content

Commit

Permalink
controllers/cpuset: Make mount failure TCONF
Browse files Browse the repository at this point in the history
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.

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.

Signed-off-by: Richard Palethorpe <[email protected]>
Reviewed-by: Petr Vorel <[email protected]>
  • Loading branch information
Richard Palethorpe committed Nov 15, 2023
1 parent e1301ed commit 5b1b571
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions testcases/kernel/controllers/cpuset/cpuset_funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +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"\
" cpuset on $CPUSET..Exiting test"
tst_brkm TCONF "Could not mount cgroup filesystem with cpuset on $CPUSET"
fi

CHILDREN_VALUE="`cat $CLONE_CHILDREN`"
Expand Down

0 comments on commit 5b1b571

Please sign in to comment.