Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310423
b: refs/heads/master
c: f220fd4
h: refs/heads/master
i:
  310421: 0be2613
  310419: f4cdc5c
  310415: 6938da0
v: v3
  • Loading branch information
Mike Christie authored and Alasdair G Kergon committed Jun 2, 2012
1 parent ac244ec commit 6c05ea1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1fbdd2b3a3cf77f77b0cdf25dd969241ea2c0ce1
refs/heads/master: f220fd4efb334a772f9a14b2372175f38d89355e
8 changes: 6 additions & 2 deletions trunk/drivers/md/dm-mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,18 @@ static void __choose_pgpath(struct multipath *m, size_t nr_bytes)
/*
* Loop through priority groups until we find a valid path.
* First time we skip PGs marked 'bypassed'.
* Second time we only try the ones we skipped.
* Second time we only try the ones we skipped, but set
* pg_init_delay_retry so we do not hammer controllers.
*/
do {
list_for_each_entry(pg, &m->priority_groups, list) {
if (pg->bypassed == bypassed)
continue;
if (!__choose_path_in_pg(m, pg, nr_bytes))
if (!__choose_path_in_pg(m, pg, nr_bytes)) {
if (!bypassed)
m->pg_init_delay_retry = 1;
return;
}
}
} while (bypassed--);

Expand Down

0 comments on commit 6c05ea1

Please sign in to comment.