]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid10: writes should get directed to replacement as well as original.
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)
commit312393c7c11397e755a1f745ad9f551424dc3f2b
tree099c425797a2f8477136991ae557e4f8f27a63b5
parent991aeeeb58c714a75cd8682cc3c0e41c1f809e13
md/raid10: writes should get directed to replacement as well as original.

When writing, we need to submit two writes, one to the original,
and one to the replacements - if there is a replacement.

If the write to the replacement results in a write error we just
fail the device.  We only try to record write errors to the
original.

This only handles writing new data.  Writing for resync/recovery
will come later.

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