Re: [PATCH 1/5] mm: prepare to premature release of memcg->vmstats_percpu

From: Johannes Weiner
Date: Mon Mar 11 2019 - 13:14:07 EST


On Thu, Mar 07, 2019 at 03:00:29PM -0800, Roman Gushchin wrote:
> Prepare to handle premature release of memcg->vmstats_percpu data.
> Currently it's a generic pointer which is expected to be non-NULL
> during the whole life time of a memcg. Switch over to the
> rcu-protected pointer, and carefully check it for being non-NULL.
>
> This change is a required step towards dynamic premature release
> of percpu memcg data.
>
> Signed-off-by: Roman Gushchin <guro@xxxxxx>

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>