]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid5: writes should get directed to replacement as well as original.
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:07 +0000 (11:32 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:07 +0000 (11:32 +1100)
commitb4e307beea5cef38ecc9c507ea8f303f72553430
treeee8090cfc80773d8a6818bd7c79936daf1eb49a8
parent994a98b223e264531acebdbc92ba95104d32783c
md/raid5: 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 replacement - 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.

When writing for recovery, we shouldn't write to the original.  This
will be addressed in a subsequent patch that generally addresses
recovery.

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