dm mpath: do not fail paths after integrity errors
authorMartin K. Petersen <martin.petersen@oracle.com>
Sun, 29 May 2011 12:02:55 +0000 (13:02 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sun, 29 May 2011 12:02:55 +0000 (13:02 +0100)
Integrity errors need to be passed to the owner of the integrity
metadata for processing. Consequently EILSEQ should be passed up the
stack.

Cc: stable@kernel.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath.c

index a550a057d991bc309b68cfa0f97481365bb1de6e..aa4e570c2cb5007cde5de16b9be07c001d980d68 100644 (file)
@@ -1290,7 +1290,7 @@ static int do_end_io(struct multipath *m, struct request *clone,
        if (!error && !clone->errors)
                return 0;       /* I/O complete */
 
-       if (error == -EOPNOTSUPP || error == -EREMOTEIO)
+       if (error == -EOPNOTSUPP || error == -EREMOTEIO || error == -EILSEQ)
                return error;
 
        if (mpio->pgpath)