diff options
author | Tomasz Majchrzak <tomasz.majchrzak@intel.com> | 2016-10-28 14:45:58 +0200 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-10-28 22:04:04 -0700 |
commit | 7449f699b2fb23bdee0a0f03aa4efb5f96fd403f (patch) | |
tree | c0d79a71c7d8171f034a58ffed73e274fbd689b5 /include | |
parent | 9a8b27fac5bbb77337cc2e5d31d37c9936782d87 (diff) |
raid1: handle read error also in readonly mode
If write is the first operation on a disk and it happens not to be
aligned to page size, block layer sends read request first. If read
operation fails, the disk is set as failed as no attempt to fix the
error is made because array is in auto-readonly mode. Similarily, the
disk is set as failed for read-only array.
Take the same approach as in raid10. Don't fail the disk if array is in
readonly or auto-readonly mode. Try to redirect the request first and if
unsuccessful, return a read error.
Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions