diff options
author | Chen Ridong <chenridong@huawei.com> | 2025-09-17 06:04:44 +0000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2025-09-17 08:35:17 -1000 |
commit | b783a6265589783e297f8dc4647a31d870d8396e (patch) | |
tree | fb4d1689e7fe3fed31877d6dcd0df4d986984d54 /rust/helpers/task.c | |
parent | 58ab6d25a1bfca42510979cb2b6921f1c807bd02 (diff) |
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>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions