]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: use resync_max_sectors for reshape as well as resync.
authorNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:48 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:48 +0000 (10:57 +1000)
commit478fc2e5a3cf743ff93ee561c3999b303c48df36
treed9bb8dc8df8f49ebd7cf5a2acfb574ec4a94eeed
parent649e7ba454d0f23632d7be87aacc872761041b89
md: use resync_max_sectors for reshape as well as resync.

Some resync type operations need to act on the address space of the
device, others on the address space of the array.

This only affects RAID10, so it sets resync_max_sectors to the array
size (it defaults to the device size), and that is currently used for
resync only.  However reshape of a RAID10 must be done against the
array size, not device size, so change code to use resync_max_sectors
for both the resync and the reshape cases.
This does not affect RAID5 or RAID1, just RAID10.

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