nvme-pci: shutdown on timeout during deletion
authorKeith Busch <keith.busch@intel.com>
Tue, 30 Apr 2019 15:33:40 +0000 (09:33 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jun 2019 09:54:06 +0000 (11:54 +0200)
commit52d7b067fadf8b66eabd6101338a871e14e872df
treed68b8525d26d1c00186ad0fcd352185dad878d15
parent6ce2ad24ae9c3f88692fbbe0d8223133c67b2aac
nvme-pci: shutdown on timeout during deletion

[ Upstream commit 9dc1a38ef1925d23c2933c5867df816386d92ff8 ]

We do not restart a controller in a deleting state for timeout errors.
When in this state, unblock potential request dispatchers with failed
completions by shutting down the controller on timeout detection.

Reported-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/pci.c