Re: [PATCH 2/5] mm, memcg: narrow the scope of percpu_charge_mutex

From: Muchun Song
Date: Thu Jul 29 2021 - 22:43:13 EST


On Thu, Jul 29, 2021 at 8:58 PM Miaohe Lin <linmiaohe@xxxxxxxxxx> wrote:
>
> Since percpu_charge_mutex is only used inside drain_all_stock(), we can
> narrow the scope of percpu_charge_mutex by moving it here.
>
> Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>

LGTM.

Reviewed-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>