]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid10: Handle replacement devices during resync.
authorNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:06 +0000 (14:27 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:06 +0000 (14:27 +1100)
commit7012657786e3f7198a56086869041e9e7938e8da
treeacedf7a9226095b332d237baa9d6ade0653ac7d1
parent5087c8d1d828a713f7eba81cdc7604c5a764764e
md/raid10:  Handle replacement devices during resync.

If we need to resync an array which has replacement devices,
we always write any block checked to every replacement.

If the resync was bitmap-based resync we will then complete the
replacement normally.
If it was a full resync, we mark the replacements as fully recovered
when the resync finishes so no further recovery is needed.

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