All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch 2 of 2]: scsi-dh + dm-mpath: propagate SCSI device deletion to multipath
@ 2010-12-15  8:31 Menny_Hamburger
  2010-12-15 16:03 ` Moger, Babu
  2010-12-15 16:09 ` Mike Snitzer
  0 siblings, 2 replies; 12+ messages in thread
From: Menny_Hamburger @ 2010-12-15  8:31 UTC (permalink / raw)
  To: dm-devel


[-- Attachment #1.1: Type: text/plain, Size: 346 bytes --]

The problem:
When a SCSI device attached to a device handler is deleted, userland processes currently performing I/O on the device will I/O hang forever.

Attached is the multipath layer part of the patch.

Menny Hamburger
Engineer
Dell | IDC
office +972 97698789,  fax +972 97698889
Dell IDC. 4 Hacharoshet St, Raanana 43657, Israel


[-- Attachment #1.2: Type: text/html, Size: 3409 bytes --]

[-- Attachment #2: md-handle-device-deletion.patch --]
[-- Type: application/octet-stream, Size: 687 bytes --]

From: Menny Hamburger <Menny_Hamburger@Dell.com>
Subject: [md] dm-multipath: Handle hardware handler deletion in pg_init_done
Bugzilla: 645343

When the SCSI device H/W handler is deleted or offlined, pg_init_done should fail the path.
Failing all the paths associated with the H/W handler will eventually terminate all I/O requests queued on the multipath device


diff -r -U 2 a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
--- a/drivers/md/dm-mpath.c	2010-12-15 10:08:13.243991000 +0200
+++ b/drivers/md/dm-mpath.c	2010-12-15 10:08:13.329736000 +0200
@@ -1190,4 +1190,5 @@
 	case SCSI_DH_OK:
 		break;
+	case SCSI_DH_DEV_OFFLINED:
 	case SCSI_DH_NOSYS:
 		if (!m->hw_handler_name) {

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-12-17 15:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-15  8:31 [Patch 2 of 2]: scsi-dh + dm-mpath: propagate SCSI device deletion to multipath Menny_Hamburger
2010-12-15 16:03 ` Moger, Babu
2010-12-15 16:09 ` Mike Snitzer
2010-12-16  7:32   ` Menny_Hamburger
2010-12-16 14:02     ` Mike Snitzer
2010-12-16 14:21       ` Menny_Hamburger
2010-12-16 15:29         ` [PATCH v2][SCSI] scsi_dh: propagate SCSI device deletion Mike Snitzer
2010-12-16 15:52           ` Menny_Hamburger
2010-12-16 16:29             ` Mike Snitzer
2010-12-16 16:42               ` Menny_Hamburger
2010-12-16 19:57                 ` [PATCH v3][SCSI] " Mike Snitzer
2010-12-17 15:46                   ` Moger, Babu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.