]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commitf58944e265d4ebe47216a5d7488aee3928823d30
tree57f2e0e81b2df9df68dd7d3223212570eef04474
parent646017a612e72f19bd9f991fe25287a149c5f627
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