Skip to content

RFC memcg: stock code cleanups

Shakeel Butt cgroups linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10memcg: remove root memcg check from refill_stockmm/memcontrol.c+1 -20 replies
2/10memcg: decouple drain_obj_stock from local stockmm/memcontrol.c+6 -11 reply
3/10memcg: introduce memcg_unchargemm/memcontrol.c+12 -161 reply
4/10memcg: manually inline __refill_stockmm/memcontrol.c+12 -201 reply
5/10memcg: no refilling stock from obj_cgroup_releasemm/memcontrol.c+11 -43 replies
6/10memcg: do obj_cgroup_put inside drain_obj_stockmm/memcontrol.c+11 -263 replies
7/10memcg: use __mod_memcg_state in drain_obj_stockmm/memcontrol.c+3 -13 replies
8/10memcg: assert in_task for couple of local_lock holdersmm/memcontrol.c+4 -00 replies
9/10memcg: trylock stock for objcgmm/memcontrol.c+11 -32 replies
10/10memcg: no more irq disabling for stock locksmm/memcontrol.c+54 -297 replies

Reviews trailers per patch

5 of 10 patches have a Reviewed-by or Acked-by.

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

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

Read the v1 thread

Cover letter [RFC PATCH 00/10] memcg: stock code cleanups

This is a cleanup series (first 7 patches) is trying to simplify the memcg stock code, particularly it tries to remove unnecessary dependencies. The last 3 patches are a prototype to make per-cpu memcg stock work without disabling irqs.

My plan is to send out the first 7 cleanup patches separately for the next release window and iterate more on the last 3 patches plus add functionality for multiple memcgs.

This series is based on next-20250313 plus two following patches:

to simply the memcg stock code

Shakeel Butt (10):
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: assert in_task for couple of local_lock holders
memcg: trylock stock for objcg
memcg: no more irq disabling for stock locks

 mm/memcontrol.c | 201 +++++++++++++++++++++++++++---------------------
 1 file changed, 112 insertions(+), 89 deletions(-)
Signature · 1 line
2.47.1