From: Tejun Heo <tj@kernel.org>
To: Hou Tao <houtao1@huawei.com>
Cc: linux-block@vger.kernel.org, axboe@kernel.dk
Subject: Re: [PATCH] block: use put_io_context_active() to disassociate bio from a task
Date: Fri, 3 Mar 2017 11:12:22 -0800 [thread overview]
Message-ID: <20170303191222.GA20854@wtj.duckdns.org> (raw)
In-Reply-To: <1488524470-570-1-git-send-email-houtao1@huawei.com>
Hello,
On Fri, Mar 03, 2017 at 03:01:10PM +0800, Hou Tao wrote:
> bio_associate_current() invokes get_io_context_active() to tell
> CFQ scheduler that the current io_context is still issuing IOs
> by increasing active_ref. When the bio is done, we also need
> to invoke put_io_context_active() to decrease active_ref else
> the associated io_context will always be active.
>
> Signed-off-by: Hou Tao <houtao1@huawei.com>
Can you please explain how you noticed issue and verified the patch?
Also, the patch will need the following.
Fixes: 852c788f8365 ("block: implement bio_associate_current()")
Cc: stable@vger.kernel.org # v3.5+
I think the failure mode isn't severe. We'll be carrying around ioc's
longer than necessary but that's about it. I wonder whether the logic
can be simplified in general. Anyways, please feel free to add
Acked-by: Tejun Heo <tj@kernel.org>
Thanks.
--
tejun
prev parent reply other threads:[~2017-03-03 19:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-03 7:01 [PATCH] block: use put_io_context_active() to disassociate bio from a task Hou Tao
2017-03-03 19:12 ` Tejun Heo [this message]
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=20170303191222.GA20854@wtj.duckdns.org \
--to=tj@kernel.org \
--cc=axboe@kernel.dk \
--cc=houtao1@huawei.com \
--cc=linux-block@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox