diff options
author | NeilBrown <neilb@suse.de> | 2011-12-23 10:17:52 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-12-23 10:17:52 +1100 |
commit | 14a75d3e07c784c004b4b44b34af996b8e4ac453 (patch) | |
tree | 6009e1ccc1b766d4c55434e3b4c1d171b8a2c004 /drivers/md/dm-thin.c | |
parent | 995c4275a7e14b8752f301e4570831a108ae4303 (diff) |
md/raid5: preferentially read from replacement device if possible.
If a replacement device is present and has been recovered far enough,
then use it for reading into the stripe cache.
If we get an error we don't try to repair it, we just fail the device.
A replacement device that gives errors does not sound sensible.
This requires removing the setting of R5_ReadError when we get
a read error during a read that bypasses the cache. It was probably
a bad idea anyway as we don't know that every block in the read
caused an error, and it could cause ReadError to be set for the
replacement device, which is bad.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/dm-thin.c')
0 files changed, 0 insertions, 0 deletions