]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: writes should get directed to replacement as well as original.
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)
commit81605a4d767b64fd572dfef8ffbbc9323d293fa3
treec8433c702892962091e617c83ada4560a208e4de
parent54e54136652349dd29d901234b223eff4389cc00
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