diff options
-rw-r--r-- | drivers/md/dm-mpath.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 833d7e752f06..7b6b0f0f831a 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c | |||
@@ -317,8 +317,10 @@ static void __choose_pgpath(struct multipath *m, size_t nr_bytes) | |||
317 | struct priority_group *pg; | 317 | struct priority_group *pg; |
318 | unsigned bypassed = 1; | 318 | unsigned bypassed = 1; |
319 | 319 | ||
320 | if (!m->nr_valid_paths) | 320 | if (!m->nr_valid_paths) { |
321 | m->queue_io = 0; | ||
321 | goto failed; | 322 | goto failed; |
323 | } | ||
322 | 324 | ||
323 | /* Were we instructed to switch PG? */ | 325 | /* Were we instructed to switch PG? */ |
324 | if (m->next_pg) { | 326 | if (m->next_pg) { |