aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-mpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r--drivers/md/dm-mpath.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index 8fa0c955eeb5..ae187e5d7d58 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -1181,14 +1181,19 @@ static void pg_init_done(void *data, int errors)
1181 m->current_pgpath = NULL; 1181 m->current_pgpath = NULL;
1182 m->current_pg = NULL; 1182 m->current_pg = NULL;
1183 } 1183 }
1184 } else if (!m->pg_init_required) { 1184 } else if (!m->pg_init_required)
1185 m->queue_io = 0;
1186 pg->bypassed = 0; 1185 pg->bypassed = 0;
1187 }
1188 1186
1189 m->pg_init_in_progress--; 1187 if (--m->pg_init_in_progress)
1190 if (!m->pg_init_in_progress) 1188 /* Activations of other paths are still on going */
1191 queue_work(kmultipathd, &m->process_queued_ios); 1189 goto out;
1190
1191 if (!m->pg_init_required)
1192 m->queue_io = 0;
1193
1194 queue_work(kmultipathd, &m->process_queued_ios);
1195
1196out:
1192 spin_unlock_irqrestore(&m->lock, flags); 1197 spin_unlock_irqrestore(&m->lock, flags);
1193} 1198}
1194 1199