Skip to content

cgroup/cpuset: Miscellaneous bug fixes & cleanup

Waiman Long cgroups linux-kselftest lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 11 repliesIn review
  2. v210 patches 0 repliesSuperseded
  3. v16 patches 20 repliesSuperseded

Changes in v3 from the cover letter

- Update patch 1 to further encapsulate the code to release isolated CPUs into a new isolated_cpus_release() helper to replace furthest_isolated_ancestor(). Other than adding a remote partition break, patch 1 should be functionally similar to the one in v2.
- Add more comment and some minor adjustment into patch 2 to make the exclusivity rule apply only to invalid partition with empty exclusive_cpus.
- Add a new fix patch "cgroup/cpuset: Release invalid isolated CPUs with a shrunk root partition parent" to handle isolated CPUs release in update_parent_effective_cpumask().

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11cgroup/cpuset: Find furthest isolated ancestor for invalidated isolated partitionkernel/cgroup/cpuset.c+53 -511 reply
2/11cgroup/cpuset: Properly compute effective xcpus in update_parent_effective_cpumask()kernel/cgroup/cpuset.c tools/testing/selftests/cgroup/test_cpuset_prs.sh+56 -421 reply
3/11cgroup/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier()kernel/cgroup/cpuset.c tools/testing/selftests/cgroup/test_cpuset_prs.sh+11 -21 reply
4/11cgroup/cpuset: Minor fixes to prstate_housekeeping_conflict()kernel/cgroup/cpuset.c+31 -141 reply
5/11selftests/cgroup: Check for a single range nohz_full CPUs before running test matrixtools/testing/selftests/cgroup/test_cpuset_prs.sh+4 -40 replies
6/11cgroup/cpuset: Prevent recursive call of remote_cpus_update() via update_cpumasks_hier()kernel/cgroup/cpuset-internal.h kernel/cgroup/cpuset.c tools/testing/selftests/cgroup/test_cpuset_prs.sh+15 -40 replies
7/11cgroup/cpuset: Make sure compute_partition_effective_cpumask() is only called for valid partitionkernel/cgroup/cpuset.c+6 -11 reply
8/11cgroup/cpuset: Release invalid isolated CPUs in compute_partition_effective_cpumask()kernel/cgroup/cpuset.c tools/testing/selftests/cgroup/test_cpuset_prs.sh+21 -291 reply
9/11cgroup/cpuset: Release invalid isolated CPUs with a shrunk root partition parentkernel/cgroup/cpuset.c tools/testing/selftests/cgroup/test_cpuset_prs.sh+21 -11 reply
9/11cgroup/cpuset: Release invalid isolated CPUs with a shrunk root partition parentkernel/cgroup/cpuset.c tools/testing/selftests/cgroup/test_cpuset_prs.sh+21 -11 reply
10/11cgroup/cpuset: Relocate compute_*effective_cpumask() and compute_effective_nodemask()kernel/cgroup/cpuset.c+106 -1061 reply
11/11cgroup/cpuset: Integrate compute_partition_effective_cpumask() into compute_effective_cpumask()kernel/cgroup/cpuset.c+10 -271 reply

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGuopeng Zhang
SeriesR-b T-b A-b
1/11R-b
2/11R-b T-b
3/11R-b
4/11R-b
5/11R-b T-b
6/11R-b T-b
7/11A-b
8/11R-b T-b
9/11R-b T-b
9/11R-b T-b
10/11A-b
11/11A-b

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

Read the v3 thread

Cover letter [PATCH-next v3 00/11] cgroup/cpuset: Miscellaneous bug fixes & cleanup

v3:
- Update patch 1 to further encapsulate the code to release isolated CPUs into a new isolated_cpus_release() helper to replace furthest_isolated_ancestor(). Other than adding a remote partition break, patch 1 should be functionally similar to the one in v2.
- Add more comment and some minor adjustment into patch 2 to make the exclusivity rule apply only to invalid partition with empty exclusive_cpus.
- Add a new fix patch "cgroup/cpuset: Release invalid isolated CPUs with a shrunk root partition parent" to handle isolated CPUs release in update_parent_effective_cpumask().

v2:
- https://lore.kernel.org/lkml/[email protected]
- Update patch 2 to resolve problem reported by sashiko and Guopeng.
- Add 2 more fix patches to resolve problem found by inspection and sashiko.
- Add 2 more cleanup patches suggested by Ridong Chen.

This patch series incorporates 9 fix patches for problems reported by sashiko, Guopenp Zhang and by inspection. The last 2 patches are cleanup patches suggested by Ridong Chen.

Waiman Long (11):
cgroup/cpuset: Find furthest isolated ancestor for invalidated
isolated partition
cgroup/cpuset: Properly compute effective xcpus in
update_parent_effective_cpumask()
cgroup/cpuset: Fix incorrect effective_cpus bug in
update_cpumasks_hier()
cgroup/cpuset: Minor fixes to prstate_housekeeping_conflict() selftests/cgroup: Check for a single range nohz_full CPUs before
running test matrix
cgroup/cpuset: Prevent recursive call of remote_cpus_update() via
update_cpumasks_hier()
cgroup/cpuset: Make sure compute_partition_effective_cpumask() is only
called for valid partition
cgroup/cpuset: Release invalid isolated CPUs in
compute_partition_effective_cpumask()
cgroup/cpuset: Release invalid isolated CPUs with a shrunk root
partition parent
cgroup/cpuset: Relocate compute_*effective_cpumask() and
compute_effective_nodemask()
cgroup/cpuset: Integrate compute_partition_effective_cpumask() into
compute_effective_cpumask()

 kernel/cgroup/cpuset-internal.h               |   5 +
 kernel/cgroup/cpuset.c                        | 505 +++++++++---------
 .../selftests/cgroup/test_cpuset_prs.sh       |  33 +-
 3 files changed, 298 insertions(+), 245 deletions(-)
Signature · 1 line
2.56.0