]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:31:54 +0000 (16:31 -0700)
commit02bb901bc7b66363bfecd4fb1fb10e96c7a0e993
tree4e410c42bafc0dcfed25411b20de55a39ece3813
parent08582ada41e6db429de956968284fb116e5d55f4
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>
(cherry picked from commit 0a7385ad69f0f210c5cfbfd334b42423a6e05e5a)

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/block/nvme-core.c
include/linux/nvme.h