Re: [PATCH 1/4] memcg: use mod_node_page_state to update stats

From: Roman Gushchin

Date: Tue Nov 11 2025 - 13:58:16 EST


Shakeel Butt <shakeel.butt@xxxxxxxxx> writes:

> The memcg stats are safe against irq (and nmi) context and thus does not
> require disabling irqs. However some code paths for memcg stats also
> update the node level stats and use irq unsafe interface and thus
> require the users to disable irqs. However node level stats, on
> architectures with HAVE_CMPXCHG_LOCAL (all major ones), has interface
> which does not require irq disabling. Let's move memcg stats code to
> start using that interface for node level stats.
>
> Signed-off-by: Shakeel Butt <shakeel.butt@xxxxxxxxx>

Acked-by: Roman Gushchin <roman.gushchin@xxxxxxxxx>