]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: add failfast handling for writes.
authorNeilBrown <neilb@suse.com>
Fri, 18 Nov 2016 05:16:12 +0000 (16:16 +1100)
committerShaohua Li <shli@fb.com>
Tue, 22 Nov 2016 17:14:42 +0000 (09:14 -0800)
commitc1431dcc2798321d5be559da2290d51e152f7a0a
tree72ee0e0ec5d72c323a451f64ee9c61970a64bcaf
parentdfc735c2a0bf58aff4c38fd4eff60f56c9ada554
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>
drivers/md/raid10.c