]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid10: Handle replacement devices during resync.
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:10 +0000 (11:32 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:10 +0000 (11:32 +1100)
commit69c8dd25fdcca02fd4dff609e4313b95b37ace5c
tree112cb1e5b6de0a68dd36e701ea1eb0903ff388a3
parent312393c7c11397e755a1f745ad9f551424dc3f2b
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