Re: [PATCH v2 6/9] memcg: do obj_cgroup_put inside drain_obj_stock

From: Vlastimil Babka
Date: Fri Apr 11 2025 - 04:36:35 EST


On 4/4/25 03:39, Shakeel Butt wrote:
> Previously we could not call obj_cgroup_put() inside the local lock
> because on the put on the last reference, the release function
> obj_cgroup_release() may try to re-acquire the local lock. However that
> chain has been broken. Now simply do obj_cgroup_put() inside
> drain_obj_stock() instead of returning the old objcg.
>
> Reviewed-by: Roman Gushchin <roman.gushchin@xxxxxxxxx>
> Signed-off-by: Shakeel Butt <shakeel.butt@xxxxxxxxx>

Acked-by: Vlastimil Babka <vbabka@xxxxxxx>