md: tidy up device searches in read_balance.
authorNeilBrown <neilb@suse.de>
Mon, 6 Sep 2010 04:10:08 +0000 (14:10 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 29 Oct 2010 05:40:33 +0000 (16:40 +1100)
commitf3ac8bf7ce1c5abd763ea762e95d1cdcf7799372
treebb903d4265520d5c96a9ee08557dd7f92c1f08df
parent046abeede717909feec38587d667cde1fc6c459c
md: tidy up device searches in read_balance.

The code for searching through the device list to read-balance in
raid1 is rather clumsy and hard to follow.  Try to simplify it a bit.

No important functionality change here.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c