From: Omar Sandoval <osandov@osandov.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
Omar Sandoval <osandov@fb.com>
Subject: Re: [PATCH] blk-mq: fix issue with shared tag queue re-running
Date: Thu, 9 Nov 2017 10:47:26 -0800 [thread overview]
Message-ID: <20171109184726.GA14209@vader.dhcp.thefacebook.com> (raw)
In-Reply-To: <98418e6d-2981-0fb7-dcdd-79b635955fcf@kernel.dk>
On Wed, Nov 08, 2017 at 03:48:51PM -0700, Jens Axboe wrote:
> This patch attempts to make the case of hctx re-running on driver tag
> failure more robust. Without this patch, it's pretty easy to trigger a
> stall condition with shared tags. An example is using null_blk like
> this:
>
> modprobe null_blk queue_mode=2 nr_devices=4 shared_tags=1 submit_queues=1 hw_queue_depth=1
>
> which sets up 4 devices, sharing the same tag set with a depth of 1.
> Running a fio job ala:
>
> [global]
> bs=4k
> rw=randread
> norandommap
> direct=1
> ioengine=libaio
> iodepth=4
>
> [nullb0]
> filename=/dev/nullb0
> [nullb1]
> filename=/dev/nullb1
> [nullb2]
> filename=/dev/nullb2
> [nullb3]
> filename=/dev/nullb3
>
> will inevitably end with one or more threads being stuck waiting for a
> scheduler tag. That IO is then stuck forever, until someone else
> triggers a run of the queue.
>
> Ensure that we always re-run the hardware queue, if the driver tag we
> were waiting for got freed before we added our leftover request entries
> back on the dispatch list.
>
> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Omar Sandoval <osandov@fb.com>
prev parent reply other threads:[~2017-11-09 18:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-08 22:48 [PATCH] blk-mq: fix issue with shared tag queue re-running Jens Axboe
2017-11-08 23:43 ` Bart Van Assche
2017-11-09 3:41 ` Ming Lei
2017-11-09 10:00 ` Ming Lei
2017-11-09 15:30 ` Jens Axboe
2017-11-09 16:32 ` Jens Axboe
2017-11-10 1:08 ` Bart Van Assche
2017-11-10 5:53 ` Ming Lei
2017-11-10 6:30 ` Ming Lei
2017-11-09 18:47 ` Omar Sandoval [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=20171109184726.GA14209@vader.dhcp.thefacebook.com \
--to=osandov@osandov.com \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=osandov@fb.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