From: Tejun Heo <tj@kernel.org>
To: Shaohua Li <shli@kernel.org>
Cc: linux-block@vger.kernel.org, axboe@kernel.dk, lizefan@huawei.com,
Kernel-team@fb.com, Shaohua Li <shli@fb.com>
Subject: Re: [RFC] block/loop: make loop cgroup aware
Date: Tue, 29 Aug 2017 08:28:09 -0700 [thread overview]
Message-ID: <20170829152809.GM491396@devbig577.frc2.facebook.com> (raw)
In-Reply-To: <20170829152236.vvtxahdrwqgmzmm7@kernel.org>
Hello, Shaohua.
On Tue, Aug 29, 2017 at 08:22:36AM -0700, Shaohua Li wrote:
> > Yeah, writeback tracks the most active cgroup and associates writeback
> > ios with that cgroup. For buffered loop devices, I think it'd be fine
> > to make the loop driver forward the cgroup association and let the
> > writeback layer determine the matching association as usual.
>
> Doing this means we must forward cgroup info to page, not bio. I need to check
> if we can make the mechanism work for memcg.
The association is already coming from the page. We just need to make
sure that going through loop driver doesn't get in the way of the
membership getting propagated to the underlying device.
> > Hmm... why do we need double forwarding (original issuer -> aio cmd ->
> > ios) in loop? If we need this, doesn't this mean that we're missing
> > ownership forwarding in aio paths and should make the forwarding
> > happen there?
>
> what do you mean double forwarding?
So, this looks like the loop driver is explicitly forwarding the
association from the original issuer to the aio command and then from
the aio command to the ios to the underlying device. I'm wondering
whether the right way to do this is making aio forward the association
by default, instead of the loop driver doing it explicitly. That way,
all aio users can benefit from the forwarding instead of just loop.
Thanks.
--
tejun
next prev parent reply other threads:[~2017-08-29 15:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-23 18:15 [RFC] block/loop: make loop cgroup aware Shaohua Li
2017-08-23 19:21 ` Vivek Goyal
2017-08-23 19:30 ` Shaohua Li
2017-08-28 22:54 ` Tejun Heo
2017-08-29 15:22 ` Shaohua Li
2017-08-29 15:28 ` Tejun Heo [this message]
2017-08-30 5:07 ` Shaohua Li
2017-08-31 0:36 ` Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170829152809.GM491396@devbig577.frc2.facebook.com \
--to=tj@kernel.org \
--cc=Kernel-team@fb.com \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=shli@fb.com \
--cc=shli@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.