nvme: allow transitioning from NEW to LIVE state
authorChristoph Hellwig <[email protected]>
Mon, 13 Jun 2016 14:45:22 +0000 (16:45 +0200)
committerJens Axboe <[email protected]>
Tue, 5 Jul 2016 17:28:09 +0000 (11:28 -0600)
For Fabrics we're not going through an intermediate reset state
(at least for now).

Reviewed-by: Jay Freyensee <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
drivers/nvme/host/core.c

index 9d7cee463fd6d16b460e37722e37f37b0cf1054a..f874c0e6b4bd6b01e74b54dcaec75b52ebd8cedb 100644 (file)
@@ -85,6 +85,7 @@ bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl,
        switch (new_state) {
        case NVME_CTRL_LIVE:
                switch (old_state) {
+               case NVME_CTRL_NEW:
                case NVME_CTRL_RESETTING:
                        changed = true;
                        /* FALLTHRU */