]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpuset: move the root cpuset write check earlier
authorChen Ridong <chenridong@huawei.com>
Wed, 17 Sep 2025 06:04:44 +0000 (06:04 +0000)
committerTejun Heo <tj@kernel.org>
Wed, 17 Sep 2025 18:35:17 +0000 (08:35 -1000)
commitb783a6265589783e297f8dc4647a31d870d8396e
treefb4d1689e7fe3fed31877d6dcd0df4d986984d54
parent58ab6d25a1bfca42510979cb2b6921f1c807bd02
cpuset: move the root cpuset write check earlier

The 'cpus' or 'mems' lists of the top_cpuset cannot be modified.
This check can be moved before acquiring any locks as a common code
block to improve efficiency and maintainability.

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