https://github.com/torvalds/linux
Revision 32644afd8975d19174bcb9ba34687c32dd810a09 authored by NeilBrown on 03 July 2012, 05:58:42 UTC, committed by NeilBrown on 03 July 2012, 05:58:42 UTC
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>
1 parent fab363b
History
Tip revision: 32644afd8975d19174bcb9ba34687c32dd810a09 authored by NeilBrown on 03 July 2012, 05:58:42 UTC
md/raid1: fix bug in read_balance introduced by hot-replace
Tip revision: 32644af

back to top