Commit 4e69d4da authored by Keith Busch's avatar Keith Busch
Browse files

nvme: disable controller on reset state failure



If the controller is not in a RESETTING state at the point of reset
work, we have to conclude the controller is being deleted. Go to the
cleanup on this condition to ensure proper pairing of request_queue
quiesce state.

Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent a2b5d544
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2690,7 +2690,8 @@ static void nvme_reset_work(struct work_struct *work)
	if (dev->ctrl.state != NVME_CTRL_RESETTING) {
		dev_warn(dev->ctrl.device, "ctrl state %d is not RESETTING\n",
			 dev->ctrl.state);
		return;
		result = -ENODEV;
		goto out;
	}

	/*