Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme core: allow controller RESETTING to RECONNECTING transition
@ 2017-05-02 18:54 jsmart2021
  2017-05-03  7:59 ` Sagi Grimberg
  0 siblings, 1 reply; 5+ messages in thread
From: jsmart2021 @ 2017-05-02 18:54 UTC (permalink / 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-04 15:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-02 18:54 [PATCH] nvme core: allow controller RESETTING to RECONNECTING transition jsmart2021
2017-05-03  7:59 ` Sagi Grimberg
2017-05-03 15:32   ` James Smart
2017-05-03 16:55     ` Sagi Grimberg
2017-05-04 15:07       ` James Smart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox