Skip to contentSkip to conversation

dm: Integrity errors should not cause failover

PATCH In review Martin K. Petersen 3 participants 5 messages Mar 8, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

drivers/md/dm-mpath.c +1 -1
index f336c69..57f7dd3 100644
@@ -1215,7 +1215,7 @@ static int do_end_io(struct multipath *m, struct request *clone,
 	if (!error && !clone->errors)
 		return 0;	/* I/O complete */
 
-	if (error == -EOPNOTSUPP)
+	if (error == -EOPNOTSUPP || error == -EILSEQ)
 		return error;
 
 	if (mpio->pgpath)
Acked-by on v1 1/1
#1 lore raw
Quoted 6 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.

Thanks Martin. But James has already staged a few patches associated with IO error differentation for 2.6.39. Your dm-mpath patch will need to be rebased on that work; best to feed it to James too.

(we were gambling that there wouldn't be additional DM or block changes related to this work and figured it safe to have James carry all the SCSI, block and DM changes... ;)

Problem is I'm not seeing a 2.6.39 branch in James' scsi-2.6-misc.git (even though I know the changes are staged there ;)

See:
http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=79775567e0439ca47eb9f501e52c4b713d44cf89
http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=751b2a7d623ead9e55f751a6087efeab454b5659
http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=63583cca745f440167bf27877182dc13e19d4bcf

James,
Any easy way to get Martin your 2.6.39 tree? Do you have a branch (just the tag isn't exposed)?

Mike

Quoted 20 lines

---

drivers/md/dm-mpath.c +1 -2
index f336c69..57f7dd3 100644
@@ -1215,7 +1215,7 @@ static int do_end_io(struct multipath *m, struct request *clone,
 	if (!error && !clone->errors)
 		return 0;	/* I/O complete */
 
-	if (error == -EOPNOTSUPP)
+	if (error == -EOPNOTSUPP || error == -EILSEQ)
 		return error;
 
 	if (mpio->pgpath)
 
--

dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#2 lore raw
Quoted 23 lines · Mike Snitzer
Quoted 6 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.

Thanks Martin. But James has already staged a few patches associated with IO error differentation for 2.6.39. Your dm-mpath patch will need to be rebased on that work; best to feed it to James too.

(we were gambling that there wouldn't be additional DM or block changes related to this work and figured it safe to have James carry all the SCSI, block and DM changes... ;)

Problem is I'm not seeing a 2.6.39 branch in James' scsi-2.6-misc.git (even though I know the changes are staged there ;)

Quoted 8 lines

See:
http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=79775567e0439ca47eb9f501e52c4b713d44cf89
http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=751b2a7d623ead9e55f751a6087efeab454b5659
http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=63583cca745f440167bf27877182dc13e19d4bcf

James,
Any easy way to get Martin your 2.6.39 tree? Do you have a branch (just the tag isn't exposed)?

Branch for what? It's a linear tree with all the SCSI patches on master.

James

#3 lore raw
Quoted 29 lines · James Bottomley
Quoted 28 lines · Mike Snitzer
Quoted 6 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.

Thanks Martin. But James has already staged a few patches associated with IO error differentation for 2.6.39. Your dm-mpath patch will need to be rebased on that work; best to feed it to James too.

(we were gambling that there wouldn't be additional DM or block changes related to this work and figured it safe to have James carry all the SCSI, block and DM changes... ;)

Problem is I'm not seeing a 2.6.39 branch in James' scsi-2.6-misc.git (even though I know the changes are staged there ;)

See:
http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=79775567e0439ca47eb9f501e52c4b713d44cf89
http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=751b2a7d623ead9e55f751a6087efeab454b5659
http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=63583cca745f440167bf27877182dc13e19d4bcf

Quoted 6 lines
Quoted 3 lines

James,
Any easy way to get Martin your 2.6.39 tree? Do you have a branch (just the tag isn't exposed)?

Branch for what? It's a linear tree with all the SCSI patches on master.

Ah.. good to know. I hadn't looked that closely ;)

But now that I look, you've been quite busy! The above commits are buried pretty deep by now.

Mike

#4 lore raw
In reply to Mike Snitzer
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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

Mike> But James has already staged a few patches associated with IO Mike> error differentation for 2.6.39. Your dm-mpath patch will need to Mike> be rebased on that work;

Oh, I didn't see they finally went in. I'll take a look at scsi-misc.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering