From: jsmart2021@gmail.com (jsmart2021@gmail.com)
Subject: [PATCH] nvme core: allow controller RESETTING to RECONNECTING transition
Date: Tue, 2 May 2017 11:54:58 -0700 [thread overview]
Message-ID: <20170502185458.3495-1-jsmart2021@gmail.com> (raw)
From: James Smart <jsmart2021@gmail.com>
Allow controller state transition : RESETTING to RECONNECTING
I intend to have the nvme_fc transport set the state to RESETTING when
tearing down the current association (error or controller reset), then
transitioning to RECONNECTING when attempting to establish a new
association.
-- james
Signed-off-by: James Smart <james.smart at broadcom.com>
---
patch cut against the nvme-4.12 tree
drivers/nvme/host/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 263946b23628..a265e528a02f 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -171,6 +171,7 @@ bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl,
case NVME_CTRL_RECONNECTING:
switch (old_state) {
case NVME_CTRL_LIVE:
+ case NVME_CTRL_RESETTING:
changed = true;
/* FALLTHRU */
default:
--
2.11.0
next reply other threads:[~2017-05-02 18:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-02 18:54 jsmart2021 [this message]
2017-05-03 7:59 ` [PATCH] nvme core: allow controller RESETTING to RECONNECTING transition Sagi Grimberg
2017-05-03 15:32 ` James Smart
2017-05-03 16:55 ` Sagi Grimberg
2017-05-04 15:07 ` James Smart
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=20170502185458.3495-1-jsmart2021@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox