Skip to content

memcg: cleanup per-cpu stock

Shakeel Butt cgroups linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] memcg-manually-inline-replace_stock_objcg.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 1 replyApplied 9/9
  2. v19 patches 23 repliesSuperseded

Patches in v2 All 9 applied

#Subject and filesSizeRepliesApplied
1/9memcg: remove root memcg check from refill_stockmm/memcontrol.c+2 -20 repliesApplied
2/9memcg: decouple drain_obj_stock from local stockmm/memcontrol.c+6 -10 repliesApplied
3/9memcg: introduce memcg_unchargemm/memcontrol.c+12 -160 repliesApplied
4/9memcg: manually inline __refill_stockmm/memcontrol.c+13 -210 repliesApplied
5/9memcg: no refilling stock from obj_cgroup_releasemm/memcontrol.c+11 -40 repliesApplied
6/9memcg: do obj_cgroup_put inside drain_obj_stockmm/memcontrol.c+11 -261 replyApplied
7/9memcg: use __mod_memcg_state in drain_obj_stockmm/memcontrol.c+3 -10 repliesApplied
8/9memcg: combine slab obj stock charging and accountingmm/memcontrol.c+46 -310 repliesApplied
9/9memcg: manually inline replace_stock_objcgmm/memcontrol.c+6 -120 repliesApplied

Reviews trailers per patch

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

PatchRoman GushchinVlastimil BabkaSebastian Andrzej Siewior
1/9R-b A-b
2/9R-b A-b
3/9R-b A-b
4/9R-b A-b
5/9R-b A-b
6/9R-b A-b
7/9R-b A-b R-b
8/9R-b
9/9R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/9] memcg: cleanup per-cpu stock

This is a cleanup series which is trying to simplify the memcg per-cpu stock code, particularly it tries to remove unnecessary dependencies on local_lock of per-cpu memcg stock. The eight patch from Vlastimil optimizes the charge path by combining the charging and accounting.

This series is based on mm-everything-2025-04-03-06-03. The main changes from v1 is collecting acks, adding warning in patch 1 and rebased on the latest local lock changes from Alexei.

Shakeel Butt (8):
memcg: remove root memcg check from refill_stock
memcg: decouple drain_obj_stock from local stock
memcg: introduce memcg_uncharge
memcg: manually inline __refill_stock
memcg: no refilling stock from obj_cgroup_release
memcg: do obj_cgroup_put inside drain_obj_stock
memcg: use __mod_memcg_state in drain_obj_stock
memcg: manually inline replace_stock_objcg

Vlastimil Babka (1):
memcg: combine slab obj stock charging and accounting

 mm/memcontrol.c | 196 ++++++++++++++++++++++++------------------------
 1 file changed, 96 insertions(+), 100 deletions(-)
Signature · 1 line
2.47.1