]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpuset: add helpers for cpus read and cpuset_mutex locks
authorChen Ridong <chenridong@huawei.com>
Mon, 25 Aug 2025 03:23:52 +0000 (03:23 +0000)
committerTejun Heo <tj@kernel.org>
Mon, 25 Aug 2025 18:20:22 +0000 (08:20 -1000)
commit2c98144fc832b35c4e9293a3bfc518608d6f5145
treed02542f35c04d301578f62b1efe4771bc0426a57
parentada00d51622822b151e1b8cc2bc85a20d2191349
cpuset: add helpers for cpus read and cpuset_mutex locks

cpuset: add helpers for cpus_read_lock and cpuset_mutex locks.

Replace repetitive locking patterns with new helpers:
- cpuset_full_lock()
- cpuset_full_unlock()

This makes the code cleaner and ensures consistent lock ordering.

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-internal.h
kernel/cgroup/cpuset-v1.c
kernel/cgroup/cpuset.c