Commit cc9d3c38 authored by Jun'ichi Nomura's avatar Jun'ichi Nomura Committed by Mike Snitzer

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: default avatarJun'ichi Nomura <j-nomura@ce.jp.nec.com>
Acked-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 272b98c6
...@@ -1268,6 +1268,7 @@ static int noretry_error(int error) ...@@ -1268,6 +1268,7 @@ static int noretry_error(int error)
case -EREMOTEIO: case -EREMOTEIO:
case -EILSEQ: case -EILSEQ:
case -ENODATA: case -ENODATA:
case -ENOSPC:
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment