]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cgroup/cpuset: Correct invalid remote parition prs
authorChen Ridong <chenridong@huawei.com>
Tue, 20 Aug 2024 03:01:24 +0000 (03:01 +0000)
committerTejun Heo <tj@kernel.org>
Tue, 20 Aug 2024 18:51:16 +0000 (08:51 -1000)
commite55f45b4bafee0ef488e815aa88368444ec5c79c
tree9acfd36fa44f9ae6c38867823f317f260643422f
parentd1a92d2d6c5dbeba9a87bfb57fa0142cdae7b206
cgroup/cpuset: Correct invalid remote parition prs

When enable a remote partition, I found that:

cd /sys/fs/cgroup/
mkdir test
mkdir test/test1
echo +cpuset > cgroup.subtree_control
echo +cpuset >  test/cgroup.subtree_control
echo 3 > test/test1/cpuset.cpus
echo root > test/test1/cpuset.cpus.partition
cat test/test1/cpuset.cpus.partition
root invalid (Parent is not a partition root)

The parent of a remote partition could not be a root. This is due to the
emtpy effective_xcpus. It would be better to prompt the message "invalid
cpu list in cpuset.cpus.exclusive".

Signed-off-by: Chen Ridong <chenridong@huawei.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c