From: Christoph Hellwig Date: Mon, 13 Jun 2016 14:45:22 +0000 (+0200) Subject: nvme: allow transitioning from NEW to LIVE state X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7d2e80080d186c1267f3033b6de91f0ff2f2863d;p=deliverable%2Flinux.git nvme: allow transitioning from NEW to LIVE state For Fabrics we're not going through an intermediate reset state (at least for now). Reviewed-by: Jay Freyensee Reviewed-by: Sagi Grimberg Signed-off-by: Christoph Hellwig Reviewed-by: Keith Busch Signed-off-by: Jens Axboe --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 9d7cee463fd6..f874c0e6b4bd 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -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 */