linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yu Kuai <yukuai3@huawei.com>
To: <axboe@kernel.dk>, <tj@kernel.org>
Cc: <linux-block@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<cgroups@vger.kernel.org>, <yukuai3@huawei.com>,
	<yi.zhang@huawei.com>
Subject: [PATCH 0/4] cancel all throttled bios in blk_cleanup_queue()
Date: Wed, 22 Sep 2021 20:51:11 +0800	[thread overview]
Message-ID: <20210922125115.381752-1-yukuai3@huawei.com> (raw)

If blk_cleanup_queue() is called when some io are still throttled,
such io will not be handled until the throttle is done, which is not
necessary because the queue is already dying.

This patch series handle such in blk_cleanup_queue().

Yu Kuai (4):
  Revert "blk-throttle: remove tg_drain_bios"
  blk-throtl: don't warn in tg_drain_bios()
  blk-throtl: introduce blk_throtl_cancel_bios()
  block: cancel all throttled bios in blk_cleanup_queue()

 block/blk-core.c     |  3 ++
 block/blk-throttle.c | 70 +++++++++++++++++++++++++++++++++++++++++---
 block/blk.h          |  2 ++
 3 files changed, 71 insertions(+), 4 deletions(-)

-- 
2.31.1


             reply	other threads:[~2021-09-22 12:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-22 12:51 Yu Kuai [this message]
2021-09-22 12:51 ` [PATCH 1/4] Revert "blk-throttle: remove tg_drain_bios" Yu Kuai
2021-09-22 12:51 ` [PATCH 2/4] blk-throtl: don't warn in tg_drain_bios() Yu Kuai
2021-09-22 12:51 ` [PATCH 3/4] blk-throtl: introduce blk_throtl_cancel_bios() Yu Kuai
2021-09-22 12:51 ` [PATCH 4/4] block: cancel all throttled bios in blk_cleanup_queue() Yu Kuai
2021-09-22 14:34   ` Christoph Hellwig
2021-09-23 13:31     ` yukuai (C)

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=20210922125115.381752-1-yukuai3@huawei.com \
    --to=yukuai3@huawei.com \
    --cc=axboe@kernel.dk \
    --cc=cgroups@vger.kernel.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tj@kernel.org \
    --cc=yi.zhang@huawei.com \
    /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;
as well as URLs for NNTP newsgroup(s).