[PATCH 1/8] nvme core: allow controller RESETTING to RECONNECTING transition
James Smart
jsmart2021 at gmail.com
Sat May 13 12:07:15 PDT 2017
Allow controller state transition : RESETTING to RECONNECTING
The nvme_fc transport will set the state to RESETTING when
tearing down the current association (error or controller reset),
then transition to RECONNECTING when attempting to establish a new
association.
-- james
Signed-off-by: James Smart <james.smart at broadcom.com>
---
originally posted standalone
recut on nvme-4.12
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 d5e0906262ea..ae977ef886a3 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -175,6 +175,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
More information about the Linux-nvme
mailing list