nvme/multipath: Consult blk_status_t for failover
authorKeith Busch <keith.busch@intel.com>
Tue, 9 Jan 2018 19:04:15 +0000 (12:04 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Jan 2018 17:52:14 +0000 (10:52 -0700)
commit908e45643d6450551bfbdbad3f088d4bd1f1c1fb
tree45a893345f37919db0d584202b724b6292a31d37
parente96fef2c3fa396dda680e943dddaa4f2a06e7b1c
nvme/multipath: Consult blk_status_t for failover

This removes nvme multipath's specific status decoding to see if failover
is needed, using the generic blk_status_t that was decoded earlier. This
abstraction from the raw NVMe status means all status decoding exists
in one place.

Acked-by: Mike Snitzer <snitzer@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
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@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h