[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170908144808.GA1774378@devbig577.frc2.facebook.com>
Date: Fri, 8 Sep 2017 07:48:09 -0700
From: Tejun Heo <tj@...nel.org>
To: Shaohua Li <shli@...nel.org>
Cc: linux-kernel@...r.kernel.org, linux-block@...r.kernel.org,
lizefan@...wei.com, tglx@...utronix.de, kernel-team@...com,
axboe@...nel.dk, Shaohua Li <shli@...com>
Subject: Re: [PATCH 3/3] block/loop: make loop cgroup aware
Hello,
On Wed, Sep 06, 2017 at 07:00:53PM -0700, Shaohua Li wrote:
> diff --git a/drivers/block/loop.c b/drivers/block/loop.c
> index 9d4545f..9850b27 100644
> --- a/drivers/block/loop.c
> +++ b/drivers/block/loop.c
> @@ -482,6 +482,8 @@ static void lo_rw_aio_complete(struct kiocb *iocb, long ret, long ret2)
> {
> struct loop_cmd *cmd = container_of(iocb, struct loop_cmd, iocb);
>
> + if (cmd->css)
> + css_put(cmd->css);
> cmd->ret = ret > 0 ? 0 : ret;
> lo_rw_aio_do_completion(cmd);
The fact that we're forwarding explicitly in loop still bothers me a
bit. Can you please elaborate why we don't want to do this
generically through aio?
Thanks.
--
tejun
Powered by blists - more mailing lists