This patch adds a check to skip failed paths while calling activate_path. It is not required to call activate_path for failed paths. Signed-off-by: Babu Moger <babu.moger@xxxxxxx> --- --- linux-2.6.31-rc3/drivers/md/dm-mpath.c.orig 2009-07-27 10:30:39.000000000 -0500 +++ linux-2.6.31-rc3/drivers/md/dm-mpath.c 2009-07-27 10:35:50.000000000 -0500 @@ -454,6 +454,10 @@ 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++; } -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html