]> 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>
Thu, 12 Apr 2012 06:12:21 +0000 (16:12 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 12 Apr 2012 06:12:21 +0000 (16:12 +1000)
commitd81f8a2b9e205110727de4e1d0e243cf22a7e59d
tree21b28b867887d0bb41f7b9a13c26c2916e48a93d
parent359bfbea0198fae7e71964d1ff9adbf4c0415ea1
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