]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Simplify device reset failure
authorKeith Busch <keith.busch@intel.com>
Wed, 24 Feb 2016 16:15:55 +0000 (09:15 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 3 Mar 2016 21:42:49 +0000 (14:42 -0700)
commite655d2667d0c5ace456bf9ff61b579b0271911ad
tree57f2e0e81b2df9df68dd7d3223212570eef04474
parent848b9becbf25b00843e374d88fecbc7eca7b5d24
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>
drivers/nvme/host/pci.c