Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d39e692 authored by Keith Busch's avatar Keith Busch Committed by Jens Axboe
Browse files

nvme-pci: unquiesce dead controller queues



This patch ensures the nvme namsepace request queues are not quiesced
on a surprise removal. It's possible the queues were previously killed
in a failed reset, so the queues need to be unquiesced to ensure all
requests are flushed to completion.

Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent fe76fcfb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2599,7 +2599,7 @@ static void nvme_remove(struct pci_dev *pdev)

	if (!pci_device_is_present(pdev)) {
		nvme_change_ctrl_state(&dev->ctrl, NVME_CTRL_DEAD);
		nvme_dev_disable(dev, false);
		nvme_dev_disable(dev, true);
	}

	flush_work(&dev->ctrl.reset_work);