Skip to content

cgroup/cpuset: Miscellaneous fixes and cleanups

Waiman Long cgroups linux-doc linux-kselftest lkml sashiko-reviews 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesIn review
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Update patch 1 as suggested by Ridong Chen and add new test cases.
- Minor update to patch 2 code and comment log.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cgroup/cpuset: Avoid unnecessary cpus & mems update in cpuset_hotplug_update_tasks()kernel/cgroup/cpuset.c tools/testing/selftests/cgroup/test_cpuset_prs.sh+35 -212 replies
2/2cgroup/cpuset: Rebind/migrate mm only for threadgroup leader in cpuset_update_tasks_nodemask()Documentation/admin-guide/cgroup-v2.rst kernel/cgroup/cpuset.c+11 -02 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchRidong Chen
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] cgroup/cpuset: Miscellaneous fixes and cleanups

v2:
- Update patch 1 as suggested by Ridong Chen and add new test cases.
- Minor update to patch 2 code and comment log.

Patch 1 updates compute_effective_cpumask() and adds new compute_effective_nodemask() helper to make sure that effective_cpus and effective_mems will inherit parent's versions for v2 if cpuset.cpus/cpuset.mems is empty.

Patch 2 makes cpuset_update_tasks_nodemask() to perform memory rebind and migration only for thread group leader like cpuset_attach().

Waiman Long (2):
cgroup/cpuset: Avoid unnecessary cpus & mems update in
cpuset_hotplug_update_tasks()
cgroup/cpuset: Rebind/migrate mm only for threadgroup leader in
cpuset_update_tasks_nodemask()

 Documentation/admin-guide/cgroup-v2.rst       |  7 +++
 kernel/cgroup/cpuset.c                        | 49 ++++++++++++-------
 .../selftests/cgroup/test_cpuset_prs.sh       | 11 ++++-
 3 files changed, 46 insertions(+), 21 deletions(-)
Signature · 1 line
2.54.0