Skip to contentSkip to conversation

dm mpath: integrity errors should not cause failover

PATCH In review Mike Snitzer 2 participants 3 messages Mar 28, 2011 – Mar 29, 2011 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm mpath: integrity errors should not cause failover

From: "Martin K. Petersen" <[email protected]>

Integrity errors need to be passed to the owner of the integrity metadata for processing. Consequently EILSEQ should be passed up the stack.

---
 drivers/md/dm-mpath.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

[resubmitting to dm-devel to get this in through the DM tree, next merge window, now that this change missed the 2.6.39 merge window]

drivers/md/dm-mpath.c +1 -1
index a550a05..aa4e570 100644
@@ -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)
#1 lore raw
Quoted 6 lines · Mike Snitzer

From: "Martin K. Petersen" <[email protected]>

Integrity errors need to be passed to the owner of the integrity metadata for processing. Consequently EILSEQ should be passed up the stack.

Quoted 8 lines
---
 drivers/md/dm-mpath.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

[resubmitting to dm-devel to get this in through the DM tree, next merge window, now that this change missed the 2.6.39 merge window]

Though this change could easily be considered a fix (for those lucky enough to even have a DIF/DIX capable mpath configuration)...

Anyway, please consider it on the DM queue.

#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Mike" == Mike Snitzer <[email protected]> writes:

Mike> Though this change could easily be considered a fix (for those Mike> lucky enough to even have a DIF/DIX capable mpath Mike> configuration)...

Yeah, I actually fixed this in my tree as a result of a user bug report.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering