nvme: delete NVME_CTRL_LIVE --> NVME_CTRL_CONNECTING transition
authorMax Gurtovoy <maxg@mellanox.com>
Wed, 31 Jan 2018 16:31:26 +0000 (18:31 +0200)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 8 Feb 2018 16:35:54 +0000 (18:35 +0200)
commit3096a739d2ccbfd6a626e388228a16558f76d79d
tree470d05e958496ec7ec6e0f62957374e4aa973b90
parentb754a32c66772e6510acd92237aadd4cf227ae39
nvme: delete NVME_CTRL_LIVE --> NVME_CTRL_CONNECTING transition

There is no logical reason to move from live state to connecting
state. In case of initial connection establishment, the transition
should be NVME_CTRL_NEW --> NVME_CTRL_CONNECTING --> NVME_CTRL_LIVE.
In case of error recovery or reset, the transition should be
NVME_CTRL_LIVE --> NVME_CTRL_RESETTING --> NVME_CTRL_CONNECTING -->
NVME_CTRL_LIVE.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/core.c