From: hch@lst.de (Christoph Hellwig)
Subject: [PATCH] nvme-rdma: fix timeout handler
Date: Tue, 18 Dec 2018 18:07:38 +0100 [thread overview]
Message-ID: <20181218170738.GA13748@lst.de> (raw)
In-Reply-To: <7b1f148f-a881-2483-1b04-3b2ff5b11449@broadcom.com>
On Tue, Dec 18, 2018@08:55:46AM -0800, James Smart wrote:
>
>
> On 12/17/2018 1:58 PM, Sagi Grimberg wrote:
>>
>>> So why did nvme_rdma_error_recovery not complete this request?
>>> I think that is where our problem is, and we are just papering over it.
>>
>> nvme_rdma_error_recovery in essence, kicks in when the controller is
>> LIVE and only then sees a failure. What it does is teardown the
>> controller and schedule a periodic reconnect work..
>>
>> When we fail the connection establishment, we don't want to do that,
>> but simply fail and let create_ctrl cleanup and fail.
>>
>> Technically, nvme_change_ctrl_state(&ctrl->ctrl, NVME_CTRL_RESETTING) is
>> failing because we are not LIVE, but rather CONNECTING (as we are still
>> in the create_ctrl time).
>
> which is why I believe the transports need at least a routine that runs
> down the queues, terminates anything pending (error recovery may be an io
> timeout), and marks the queues down - regardless of the state of the
> controller.? That run down will terminate the connection admin commands
> that may be in error, allowing the fail path Sagi points out to kick in.
> This same path needs to occur at the start of the reset and delete as well.
That was my impression as well. Or in fact just allow a transition
from connecting to reset (or a special connect terminate state that
is very similar except for not recovering)
next prev parent reply other threads:[~2018-12-18 17:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-13 21:29 [PATCH] nvme-rdma: fix timeout handler Sagi Grimberg
2018-12-13 21:35 ` Sagi Grimberg
2018-12-15 1:41 ` Jaesoo Lee
2018-12-15 2:13 ` Sagi Grimberg
2018-12-16 11:12 ` Israel Rukshin
2018-12-16 16:32 ` Christoph Hellwig
2018-12-17 21:58 ` Sagi Grimberg
2018-12-18 16:55 ` James Smart
2018-12-18 17:07 ` Christoph Hellwig [this message]
2018-12-18 19:00 ` James Smart
2018-12-20 21:58 ` Sagi Grimberg
2018-12-20 21:42 ` Sagi Grimberg
2019-01-01 8:49 ` 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=20181218170738.GA13748@lst.de \
--to=hch@lst.de \
/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