dm mpath: do not fail path on -ENOSPC
authorJun'ichi Nomura <j-nomura@ce.jp.nec.com>
Fri, 13 Sep 2013 05:54:30 +0000 (14:54 +0900)
committerMike Snitzer <snitzer@redhat.com>
Wed, 18 Sep 2013 18:41:06 +0000 (14:41 -0400)
commitcc9d3c382bc1674884c2e5e468d51230a9503dee
tree12ec2ac2b8855bcc189e7135ee9530995fbede77
parent272b98c6455f00884f0350f775c5342358ebb73f
dm mpath: do not fail path on -ENOSPC

Since ENOSPC is a target-side error, dm-mpath should just pass the error
information to upper layer instead of retrying itself with path failover.
Otherwise it will end up failing all paths down while path checkers find
all paths ok.

ENOSPC can now be returned from SCSI device after commit a9d6ceb8
("[SCSI] return ENOSPC on thin provisioning failure").

Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Acked-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c