NVMe: Simplify device resume on io queue failure
authorKeith Busch <keith.busch@intel.com>
Fri, 2 Oct 2015 16:37:29 +0000 (10:37 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 9 Oct 2015 16:40:36 +0000 (10:40 -0600)
commit0a7385ad69f0f210c5cfbfd334b42423a6e05e5a
tree676c0f49cf661bbcb65455a0a5a739acf4e745e9
parent5105aa555c1c681ae281ea0d6108efd0a5d8a5e8
NVMe: Simplify device resume on io queue failure

Releasing IO queues and disks was done in a work queue outside the
controller resume context to delete namespaces if the controller failed
after a resume from suspend. This is unnecessary since we can resume
a device asynchronously.

This patch makes resume use probe_work so it can directly remove
namespaces if the device is manageable but not IO capable. Since the
deleting disks was the only reason we had the convoluted "reset_workfn",
this patch removes that unnecessary indirection.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c
include/linux/nvme.h