Re: [PATCH 3/3] loop: Charge i/o to mem and blk cg

From: Ming Lei
Date: Mon Apr 05 2021 - 23:23:16 EST


On Sat, Apr 3, 2021 at 3:18 AM Dan Schatzberg <schatzberg.dan@xxxxxxxxx> wrote:
>
> The current code only associates with the existing blkcg when aio is
> used to access the backing file. This patch covers all types of i/o to
> the backing file and also associates the memcg so if the backing file is
> on tmpfs, memory is charged appropriately.
>
> This patch also exports cgroup_get_e_css and int_active_memcg so it
> can be used by the loop module.
>
> Signed-off-by: Dan Schatzberg <schatzberg.dan@xxxxxxxxx>
> Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>

Reviewed-by: Ming Lei <ming.lei@xxxxxxxxxx>

--
Ming Lei