NeilBrown 212e7eb7a3 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>
2016-11-22 09:14:10 -08:00
..
2016-08-07 14:41:02 -06:00
2016-07-28 17:38:16 -07:00
2016-10-28 09:27:58 -07:00
2016-06-07 13:41:38 -06:00
2016-08-07 14:41:02 -06:00
2016-08-07 14:41:02 -06:00
2016-07-28 17:38:16 -07:00
2016-08-07 14:41:02 -06:00
2016-08-07 14:41:02 -06:00
2016-10-28 09:27:58 -07:00
2016-07-20 23:49:49 -04:00
2016-01-20 13:52:20 -08:00
2015-08-13 12:31:57 -06:00
2016-11-18 17:13:49 -08:00
2016-11-18 17:13:49 -08:00
2016-11-18 17:13:49 -08:00