]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Simplify device reset failure
authorKeith Busch <keith.busch@intel.com>
Wed, 22 Feb 2017 19:13:09 +0000 (11:13 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:41:07 +0000 (13:41 -0700)
commita80b4577b6a3119e737d758c421095e8d719c61d
tree28f02509a1e1387a1aa9013b0a1f48f05b7a88ed
parenta215ff7859e733436803d684f4714c3264db4cf9
NVMe: Simplify device reset failure

A reset failure schedules the device to unbind from the driver through
the pci driver's remove. This cleans up all intialization, so there is
no need to duplicate the potentially racy cleanup.

To help understand why a reset failed, the status is logged with the
existing warning message.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit f58944e265d4ebe47216a5d7488aee3928823d30)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c