From: jsmart2021@gmail.com (James Smart)
Subject: [PATCH] nvme_fc: correct hang in nvme_ns_remove()
Date: Thu, 11 Jan 2018 15:34:58 -0800 [thread overview]
Message-ID: <eb86826e-3850-013b-ca07-e89021ea572e@gmail.com> (raw)
In-Reply-To: <20180111232138.10669-1-jsmart2021@gmail.com>
If you compare behavior of FC with rdma, rdma starts the queues at the
tail end of losing connectivity to the device - meaning any pending io
and any future io issued while connectivity has yet to
be re-established (e.g. in RECONNECTING state) will fail with an io
error. This is good, if there is a multipathing config, as it's a
near-immediate fast fail scenario. But... if there is no multipath,
it means applications and filesystems are now seeing io errors while
connectivity is pending and that can be disastrous. FC currently
leaves the queues quiesced while connectivity is pending so io errors
are not seen. But this means FC won't fastfail the ios to the
multipath'er.
For now I want to fix this keeping the existing FC behavior. From there,
I'd like the transports to block like FC does so no errors. However, a
new timer would be introduced for a "fast failure timeout" - which
starts at loss of connectivity and when expires, starts the queues and
fails any pending and future io.
Thoughts ?
-- james
On 1/11/2018 3:21 PM, James Smart wrote:
> When connectivity is lost to a device, the association is terminated
> and the blk-mq queues are quiesced/stopped. When connectivity is
> re-established, they are resumed.
>
> If connectivity is lost for a sufficient amount of time that the
> controller is then deleted, the delete path starts tearing down queues,
> and eventually calling nvme_ns_remove(). It appears that pending
> commands may cause blk_cleanup_queue() to never complete and the
> teardown stalls.
>
> Correct by starting the ns queues after transitioning to a DELETING
> state, allowing pending commands to be flushed with io failures. Thus
> the delete path is clear when reached.
next prev parent reply other threads:[~2018-01-11 23:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-11 23:21 [PATCH] nvme_fc: correct hang in nvme_ns_remove() James Smart
2018-01-11 23:34 ` James Smart [this message]
2018-01-11 23:46 ` Keith Busch
2018-01-14 10:44 ` Sagi Grimberg
2018-01-14 10:44 ` Sagi Grimberg
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=eb86826e-3850-013b-ca07-e89021ea572e@gmail.com \
--to=jsmart2021@gmail.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 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.