md: simplify raid10 read_balance
commit56d9912106b0974ffb6dd264c80c7e816677e998
authorNeilBrown <neilb@suse.de>
Wed, 11 May 2011 04:27:03 +0000 (11 14:27 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 11 May 2011 04:27:03 +0000 (11 14:27 +1000)
treeeef9208cffd7bc4501ca57250a4b884a04aa116b
parent8258c53208d7a9b7207e7d4dae36d2ea384cb278
md: simplify raid10 read_balance

raid10 read balance has two different loop for looking through
possible devices to chose the best.
Collapse those into one loop and generally make the code more
readable.

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