commit | 76073054c95b12af6bd0cc9b9462a265b45ba38f | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Wed May 11 14:34:56 2011 +1000 |
committer | NeilBrown <neilb@suse.de> | Wed May 11 14:34:56 2011 +1000 |
tree | 78f830289dd8bb5337a7d3efa442ae44abd4dbab | |
parent | 56d9912106b0974ffb6dd264c80c7e816677e998 [diff] |
md/raid1: clean up read_balance. read_balance has two loops which both look for a 'best' device based on slightly different criteria. This is clumsy and makes is hard to add extra criteria. So replace it all with a single loop that combines everything. Signed-off-by: NeilBrown <neilb@suse.de>