Re: [PATCH 1/5] mm: memcg: factor out trylock_stock() and unlock_stock()

From: Hao Li

Date: Tue Mar 03 2026 - 02:58:44 EST


On Mon, Mar 02, 2026 at 02:50:14PM -0500, Johannes Weiner wrote:
> From: Johannes Weiner <jweiner@xxxxxxxx>
>
> Consolidate the local lock acquisition and the local stock
> lookup. This allows subsequent patches to use !!stock as an easy way
> to disambiguate the locked vs. contended cases through the callstack.
>
> Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>
> ---
> mm/memcontrol.c | 25 +++++++++++++++++++------
> 1 file changed, 19 insertions(+), 6 deletions(-)
>

Looks good to me.
Reviewed-by: Hao Li <hao.li@xxxxxxxxx>