]> 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>
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)
commit5087c8d1d828a713f7eba81cdc7604c5a764764e
treef13d2ef48888717c37075a21901d3c85650ae476
parent5d59ff84ad328f8224f195e1f15dea3eb10ebecb
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