nvme-pci: shutdown on timeout during deletion
authorKeith Busch <keith.busch@intel.com>
Tue, 30 Apr 2019 15:33:40 +0000 (09:33 -0600)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 May 2019 13:17:18 +0000 (09:17 -0400)
commit9dc1a38ef1925d23c2933c5867df816386d92ff8
treefebf02bebe1150d613f820d85c321ddb60c31b1b
parent049bf37262c61c99f45438910711b55054b24838
nvme-pci: shutdown on timeout during deletion

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>
drivers/nvme/host/pci.c