diff options
| author | Chen Ridong <chenridong@huawei.com> | 2025-08-25 03:23:52 +0000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2025-08-25 08:20:22 -1000 |
| commit | 2c98144fc832b35c4e9293a3bfc518608d6f5145 (patch) | |
| tree | d02542f35c04d301578f62b1efe4771bc0426a57 /rust/helpers/helpers.c | |
| parent | ada00d51622822b151e1b8cc2bc85a20d2191349 (diff) | |
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>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
