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

From: Johannes Weiner
Date: Thu Feb 20 2020 - 17:02:45 EST

On Thu, Feb 20, 2020 at 11:51:53AM -0500, Dan Schatzberg 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 so it can be used by the loop
> module.
> Signed-off-by: Dan Schatzberg <schatzberg.dan@xxxxxxxxx>

The cgroup bits look good to me.

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>