md/raid5: Allow recovered part of partially recovered devices to be in-sync
authorNeilBrown <neilb@suse.de>
Thu, 17 Jun 2010 07:25:21 +0000 (17:25 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 24 Jun 2010 03:35:39 +0000 (13:35 +1000)
commit415e72d034c50520ddb7ff79e7d1792c1306f0c9
tree4558df940a15693e477af206b54423d98d9a04b1
parent674806d62fb02a22eea948c9f1b5e58e0947b728
md/raid5: Allow recovered part of partially recovered devices to be in-sync

During a recovery of reshape the early part of some devices might be
in-sync while the later parts are not.
We we know we are looking at an early part it is good to treat that
part as in-sync for stripe calculations.

This is particularly important for a reshape which suffers device
failure.  Treating the data as in-sync can mean the difference between
data-safety and data-loss.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c