diff options
author | NeilBrown <neilb@suse.com> | 2016-11-18 16:16:12 +1100 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-11-22 09:14:42 -0800 |
commit | 1919cbb23bf1b3e0fdb7b6edfb7369f920744087 (patch) | |
tree | 72ee0e0ec5d72c323a451f64ee9c61970a64bcaf /drivers/md/md.c | |
parent | 8d3ca83dcf9ca3d58822eddd279918d46f41e9ff (diff) |
md/raid10: add failfast handling for writes.
When writing to a fastfail device, we use MD_FASTFAIL unless
it is the only device being written to. For
resync/recovery, assume there was a working device to read
from so always use MD_FASTFAIL.
If a write for resync/recovery fails, we just fail the
device - there is not much else to do.
If a normal write fails, but the device cannot be marked
Faulty (must be only one left), we queue for write error
handling which calls narrow_write_error() to write the block
synchronously without any failfast flags.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/md.c')
0 files changed, 0 insertions, 0 deletions