NeilBrown 32644afd89 md/raid1: fix bug in read_balance introduced by hot-replace
When we added hot_replace we doubled the number of devices
that could be in a RAID1 array.  So we doubled how far read_balance
would search.  Unfortunately we didn't double the point at which
it looped back to the beginning - so it effectively loops over
all non-replacement disks twice.
This doesn't cause bad behaviour, but it pointless and means we
never read from replacement devices.

Signed-off-by: NeilBrown <neilb@suse.de>
2012-07-03 15:58:42 +10:00
..
2012-05-26 12:22:27 -07:00
2012-06-20 14:39:36 -07:00
2012-05-24 16:22:53 -04:00
2012-05-31 08:46:50 +02:00
2012-06-20 14:39:36 -07:00
2012-05-08 12:35:06 +02:00
2012-05-26 12:42:29 -07:00
2012-05-23 14:07:06 -07:00
2012-05-22 16:02:13 -07:00
2012-06-21 13:40:40 -07:00
2012-06-20 22:10:08 -07:00
2012-06-20 14:39:36 -07:00
2012-06-24 11:03:52 -07:00
2012-05-22 16:02:13 -07:00
2012-06-15 17:39:32 -07:00
2012-05-16 12:46:37 -04:00
2012-06-20 15:15:03 -07:00
2012-06-20 15:13:13 -07:00
2012-06-16 16:59:05 -07:00
2012-05-26 12:42:29 -07:00
2012-06-20 14:39:36 -07:00
2012-06-15 17:17:15 -07:00
2012-05-22 16:34:21 -07:00
2012-05-26 12:22:27 -07:00