md/raid1: clean up read_balance.
authorNeilBrown <neilb@suse.de>
Wed, 11 May 2011 04:34:56 +0000 (14:34 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 11 May 2011 04:34:56 +0000 (14:34 +1000)
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>
drivers/md/raid1.c

Simple merge