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)
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

index b759a127f9c3718bbfffe2d16ca258fe4afe15e2..075747e25f77c9206a957b33d26e5d3ba638f0ca 100644 (file)
@@ -1268,6 +1268,7 @@ static int noretry_error(int error)
        case -EREMOTEIO:
        case -EILSEQ:
        case -ENODATA:
+       case -ENOSPC:
                return 1;
        }
 
This page took 0.029481 seconds and 5 git commands to generate.