]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: Handle replacement devices during resync.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:55 +0000 (10:17 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:55 +0000 (10:17 +1100)
commit3442763b8655bceee8fc92d01679e49c4cb873df
treec501f70c4726aade7eec3d743741f1568bba41df
parentf4e54171e2fb896d0af493301f46dd09af91938e
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