On 5/7/25 12:55 AM, Shakeel Butt wrote: > The per-cpu stock_lock protects cached memcg and cached objcg and their > respective fields. However there is no dependency between these fields > and it is better to have fine grained separate locks for cached memcg > and cached objcg. This decoupling of locks allows us to make the memcg > charge cache and objcg charge cache to be nmi safe independently. > > At the moment, memcg charge cache is already nmi safe and this > decoupling will allow to make memcg charge cache work without disabling > irqs. > > Signed-off-by: Shakeel Butt <shakeel.butt@xxxxxxxxx> Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>