Re: [PATCH 0/9] memcg: cleanup per-cpu stock

From: Shakeel Butt
Date: Wed Apr 02 2025 - 16:41:03 EST


On Sat, Mar 15, 2025 at 10:49:21AM -0700, Shakeel Butt wrote:
> 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 next-20250314 plus two following patches:
>
> Link: https://lore.kernel.org/all/20250312222552.3284173-1-shakeel.butt@xxxxxxxxx/
> Link: https://lore.kernel.org/all/20250313054812.2185900-1-shakeel.butt@xxxxxxxxx/
>
> 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 | 195 +++++++++++++++++++++++-------------------------
> 1 file changed, 95 insertions(+), 100 deletions(-)
>

I am waiting for [1] to merge into linus tree and then I will rebase and
resend this series.

[1] https://lore.kernel.org/all/20250401205245.70838-1-alexei.starovoitov@xxxxxxxxx/