Messages in this thread | | | From | Ming Lei <> | Date | Tue, 6 Apr 2021 11:23:01 +0800 | Subject | Re: [PATCH 3/3] loop: Charge i/o to mem and blk cg |
| |
On Sat, Apr 3, 2021 at 3:18 AM Dan Schatzberg <schatzberg.dan@gmail.com> 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@gmail.com> > Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
-- Ming Lei
| |