diff options
author | NeilBrown <neilb@suse.com> | 2016-11-18 06:16:12 +0100 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-11-22 18:14:42 +0100 |
commit | 1919cbb23bf1b3e0fdb7b6edfb7369f920744087 (patch) | |
tree | 72ee0e0ec5d72c323a451f64ee9c61970a64bcaf /drivers/md/raid5-cache.c | |
parent | md/raid10: add failfast handling for reads. (diff) | |
download | linux-1919cbb23bf1b3e0fdb7b6edfb7369f920744087.tar.xz linux-1919cbb23bf1b3e0fdb7b6edfb7369f920744087.zip |
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/raid5-cache.c')
0 files changed, 0 insertions, 0 deletions