dm mpath: Use blk_path_error
authorKeith Busch <keith.busch@intel.com>
Tue, 9 Jan 2018 19:04:18 +0000 (12:04 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Jan 2018 17:52:20 +0000 (10:52 -0700)
commita1275677f8cd060bb8824fda66781d431560c714
tree124cff99d2f5f3bd5f1d6efac985ba3d86bcabfe
parente1f425e770d21a34f51d7284e55f3fa984f8e275
dm mpath: 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/md/dm-mpath.c