NeilBrown 671488cc25 md/raid5: allow each slot to have an extra replacement device
Just enhance data structures to record a second device per slot to be
used as a 'replacement' device, replacing the original.
We also have a second bio in each slot in each stripe_head.  This will
only be used when writing to the array - we need to write to both the
original and the replacement at the same time, so will need two bios.

For now, only try using the replacement drive for aligned-reads.
In this case, we prefer the replacement if it has been recovered far
enough, otherwise use the original.

This includes a small enhancement.  Previously we would only do
aligned reads if the target device was fully recovered.  Now we also
do them if it has recovered far enough.

Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
2011-12-23 10:17:52 +11:00
..
2011-10-31 20:19:09 +00:00
2011-08-02 12:32:01 +01:00
2011-10-31 20:19:04 +00:00
2010-08-12 04:14:11 +01:00
2011-08-02 12:32:02 +01:00
2011-07-26 16:49:47 -07:00
2011-03-31 11:26:23 -03:00
2011-03-24 13:54:35 +00:00
2011-10-31 20:19:04 +00:00
2011-10-31 20:21:18 +00:00
2010-08-12 04:14:12 +01:00
2011-10-31 20:19:04 +00:00
2011-10-31 20:21:18 +00:00
2011-10-31 20:21:18 +00:00