Improve mem_cgroup_iter()
Status from this message: [merged mm-stable] mm-clean-up-mem_cgroup_iter.patch removed from -mm tree
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest5 patches 0 repliesApplied 5/5
- v35 patches 7 repliesSuperseded
- v25 patches 6 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 4 patches | 8 replies | Superseded |
Patches in v4 All 5 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | cgroup: clarify css sibling linkage is protected by cgroup_mutex or RCUinclude/ kernel/ | +14 | 0 replies | Applied |
| 2/5 | mm: don't hold css->refcnt during traversalmm/ | +1 | 0 replies | Applied |
| 3/5 | mm: increment gen # before restarting traversalmm/ | +12 | 0 replies | Applied |
| 4/5 | mm: restart if multiple traversals racedinclude/ mm/ | +19 | 0 replies | Applied |
| 5/5 | mm: clean up mem_cgroup_iter()mm/ | +12 | 0 replies | Applied |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Michal Koutný | T.J. Mercier |
|---|---|---|
| 1/5 | R-b | |
| 2/5 | R-b | |
| 3/5 | R-b | |
| 4/5 | R-b | |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH mm-unstable v4 0/5] Improve mem_cgroup_iter()
Incremental cgroup iteration is being used again [1]. This patchset improves the reliability of mem_cgroup_iter(). It also improves simplicity and code readability.
[1] https://lore.kernel.org/[email protected]/
---
v4: Fixed memcg restart bug reported by hughd in v3, patch 4/5
v3: https://lore.kernel.org/[email protected]/
Removed __rcu tag from patch 2/5 which removes the need for rcu_dereference(). This helps readability.
v2: https://lore.kernel.org/[email protected]/
Add patch to clarify css sibling linkage is RCU protected. The kernel build bot RCU sparse error from v1 has been ignored.
v1: https://lore.kernel.org/[email protected]/
Kinsey Ho (5):
cgroup: clarify css sibling linkage is protected by cgroup_mutex or
RCU
mm: don't hold css->refcnt during traversal
mm: increment gen # before restarting traversal
mm: restart if multiple traversals raced
mm: clean up mem_cgroup_iter()
include/linux/cgroup-defs.h | 6 ++- include/linux/memcontrol.h | 4 +- kernel/cgroup/cgroup.c | 16 +++---- mm/memcontrol.c | 84 ++++++++++++++++--------------------- 4 files changed, 51 insertions(+), 59 deletions(-)
Signature · 1 line
2.46.0.469.g59c65b2a67-goog