dm: Integrity errors should not cause failover
Subsystems (2)
PATCH 1/1 dm: Integrity errors should not cause failover
Integrity errors need to be passed to the owner of the integrity metadata for processing. Consequently EILSEQ should be passed up the stack.
---
Ping on this one?
drivers/md/dm-mpath.c +1 -1
@@ -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)
Quoted 11 lines · Martin K. Petersen
Integrity errors need to be passed to the owner of the integrity metadata for processing. Consequently EILSEQ should be passed up the stack.
Signed-off-by Martin K. Petersen <[email protected]>Acked-by Mike Snitzer <[email protected]>---
Ping on this one?
It has been on my personal queue but I didn't push the issue with Alasdair (for 2.6.39).
At this point seems we should be targetting this fix for 2.6.40 but I'll defer to Alasdair on whether he'd like to push to .39 last minute.
Quoted 13 lines
drivers/md/dm-mpath.c +1
-1@@ -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)
Quoted 13 lines · Mike Snitzer
Quoted 10 lines · Martin K. Petersen
Integrity errors need to be passed to the owner of the integrity metadata for processing. Consequently EILSEQ should be passed up the stack.
Signed-off-by Martin K. Petersen <[email protected]>Acked-by Mike Snitzer <[email protected]>---
Quoted 7 lines
Quoted 1 line
Ping on this one?
It has been on my personal queue but I didn't push the issue with Alasdair (for 2.6.39).
At this point seems we should be targetting this fix for 2.6.40 but I'll defer to Alasdair on whether he'd like to push to .39 last minute.
Hi Martin,
Alasdair and I just chatted about this patch: it will always pass the the -EILSEQ up _without_ performing any mpath path failure.
The newfound concern is: is there ever a benefit to failing the path before returning -EILSEQ?
Or will -EILSEQ always imply there is nothing wrong with the path? E.g. a transport error cannot cause a CRC error -- the transport error is always trapped by SCSI and cannot result in continued processing of an IO (that goes on to have CRC error)?
Thanks,
Mike
Quoted 19 lines
Quoted 6 lines
drivers/md/dm-mpath.c +0
-0drivers/md/dm-mpath.c static int do_end_io(struct multipath *m, struct request *clone, · line 1296
Quoted 8 lines
drivers/md/dm-mpath.c +1
-1@@ -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)--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Mike" == Mike Snitzer <[email protected]> writes:
Mike,
Mike> Alasdair and I just chatted about this patch: it will always pass Mike> the the -EILSEQ up _without_ performing any mpath path failure.
Correct.
Mike> The newfound concern is: is there ever a benefit to failing the Mike> path before returning -EILSEQ?
No, never.
Mike> Or will -EILSEQ always imply there is nothing wrong with the path? Mike> E.g. a transport error cannot cause a CRC error -- the transport Mike> error is always trapped by SCSI and cannot result in continued Mike> processing of an IO (that goes on to have CRC error)?
-EILSEQ is only returned if a discrepancy is detected between data and protection information. In both cases the block in question was successfully received by either initiator or target. I.e. the path is working fine.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering