nvme/multipath: Use blk_path_error
authorKeith Busch <keith.busch@intel.com>
Tue, 9 Jan 2018 19:04:17 +0000 (12:04 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Jan 2018 17:52:18 +0000 (10:52 -0700)
commite1f425e770d21a34f51d7284e55f3fa984f8e275
tree030b613c66e0c4828b94cee8e5ab27f64f43dd00
parent9111e5686c8cf3905191d4feb819acd874437500
nvme/multipath: Use blk_path_error

Uses common code for determining if an error should be retried on
alternate path.

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/multipath.c