]> 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>
Fri, 9 Dec 2011 03:27:03 +0000 (14:27 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:03 +0000 (14:27 +1100)
commit6dd28c71929675d7a4b08d07900078f6a3ece9ad
treeebf87f5b506c37fb5ec70c178c5281626953a2f9
parent6ff1b63d5a64479096f24ace6464f310107d0b9c
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