[PATCH -next 0/4] some optimization for cpuset
From: Chen Ridong
Date: Fri Aug 08 2025 - 05:39:56 EST
From: Chen Ridong <chenridong@xxxxxxxxxx>
This patch series includes the following improvements:
1. Removes the redundant CS_ONLINE flag.
2. Introduces new helper functions guard_cpuset() and
guard_cpus_read_and_cpuset().
3. Replaces manual locking patterns with the new guard helpers.
Chen Ridong (4):
cpuset: remove redundant CS_ONLINE flag
cpuset: add helpers for cpuset related locks
cpuset: use guard_cpus_read_and_cpuset to make code concise
cpuset: replace cpuset_lock() with guard_cpuset()
include/linux/cgroup.h | 5 ++++
include/linux/cpuset.h | 3 +-
kernel/cgroup/cpuset-internal.h | 5 ++--
kernel/cgroup/cpuset-v1.c | 22 +++++---------
kernel/cgroup/cpuset.c | 52 ++++++++++-----------------------
kernel/sched/syscalls.c | 15 ++++------
6 files changed, 37 insertions(+), 65 deletions(-)
--
2.34.1