linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next 0/4] some optimization for cpuset
@ 2025-08-08  9:25 Chen Ridong
  2025-08-08  9:25 ` [PATCH -next 1/4] cpuset: remove redundant CS_ONLINE flag Chen Ridong
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Chen Ridong @ 2025-08-08  9:25 UTC (permalink / raw)
  To: tj, hannes, mkoutny, longman, mingo, peterz, juri.lelli,
	vincent.guittot, dietmar.eggemann, rostedt, bsegall, mgorman,
	vschneid
  Cc: cgroups, linux-kernel, lujialin4, chenridong

From: Chen Ridong <chenridong@huawei.com>

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-08-13  6:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-08  9:25 [PATCH -next 0/4] some optimization for cpuset Chen Ridong
2025-08-08  9:25 ` [PATCH -next 1/4] cpuset: remove redundant CS_ONLINE flag Chen Ridong
2025-08-12 14:44   ` Waiman Long
2025-08-13  0:54     ` Chen Ridong
2025-08-13  1:00       ` Waiman Long
2025-08-13  1:20         ` Chen Ridong
2025-08-13  1:33           ` Waiman Long
2025-08-13  6:28             ` Chen Ridong
2025-08-08  9:25 ` [PATCH -next 2/4] cpuset: add helpers for cpuset related locks Chen Ridong
2025-08-09 15:56   ` Christophe JAILLET
2025-08-11  2:17     ` Chen Ridong
2025-08-08  9:25 ` [PATCH -next 3/4] cpuset: use guard_cpus_read_and_cpuset to make code concise Chen Ridong
2025-08-08  9:25 ` [PATCH -next 4/4] cpuset: replace cpuset_lock() with guard_cpuset() Chen Ridong
2025-08-08 22:02   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).