summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2016-11-18 16:16:12 +1100
committerShaohua Li <shli@fb.com>2016-11-22 09:14:10 -0800
commit212e7eb7a3403464a796c05c2fc46cae3b62d803 (patch)
tree8c7cdf4eb6191d1d0210b524eccb9b7e88e2c378 /drivers/md/raid10.h
parent2e52d449bcec31cb66d80aa8c798b15f76f1f5e0 (diff)
downloadlinux-212e7eb7a3403464a796c05c2fc46cae3b62d803.tar.gz
linux-212e7eb7a3403464a796c05c2fc46cae3b62d803.tar.bz2
linux-212e7eb7a3403464a796c05c2fc46cae3b62d803.zip
md/raid1: 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 REQ_FASTFAIL_DEV. If a write for resync/recovery fails, we just fail the device - there is not much else to do. If a normal failfast write fails, but the device cannot be failed (must be only one left), we queue for write error handling. This will call narrow_write_error() to retry the write synchronously and without any FAILFAST flags. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid10.h')
0 files changed, 0 insertions, 0 deletions