diff mbox

[RESUBMIT] dm-mpath: Two minor fixes while processing activate_path

Message ID E463DF2B2E584B4A82673F53D62C2EF487870633@cosmail01.lsi.com (mailing list archive)
State Accepted, archived
Delegated to: Alasdair Kergon
Headers show

Commit Message

babu moger Jan. 15, 2010, 8:26 p.m. UTC
None
diff mbox

Patch

--- linux-2.6.33-rc2/drivers/md/dm-mpath.c.orig	2010-01-15 15:04:37.000000000 -0400
+++ linux-2.6.33-rc2/drivers/md/dm-mpath.c	2010-01-15 15:11:48.000000000 -0400
@@ -461,6 +461,9 @@  static void process_queued_ios(struct wo
 		m->pg_init_count++;
 		m->pg_init_required = 0;
 		list_for_each_entry(tmp, &pgpath->pg->pgpaths, list) {
+			/* Skip failed paths */
+			if (!tmp->is_active)
+				continue;
 			if (queue_work(kmpath_handlerd, &tmp->activate_path))
 				m->pg_init_in_progress++;
 		}
@@ -1143,8 +1146,8 @@  static void pg_init_done(void *data, int
 			errors = 0;
 			break;
 		}
-		DMERR("Cannot failover device because scsi_dh_%s was not "
-		      "loaded.", m->hw_handler_name);
+		DMERR("Could not failover the device, Handler scsi_dh_%s "
+			"Error %d.", m->hw_handler_name, errors);
 		/*
 		 * Fail path for now, so we do not ping pong
 		 */