md/raid5: ensure correct assessment of drives during degraded reshape.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 22:57:00 +0000 (09:57 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 22:57:00 +0000 (09:57 +1100)
commit30d7a4836847bdb10b32c78a4879d4aebe0f193b
tree039d4eaec57d67cbfc49d92f12e592b46c251c01
parent09cd9270ea52e0f9851528e8ed028073f96b3c34
md/raid5: ensure correct assessment of drives during degraded reshape.

While reshaping a degraded array (as when reshaping a RAID0 by first
converting it to a degraded RAID4) we currently get confused about
which devices are in_sync.  In most cases we get it right, but in the
region that is being reshaped we need to treat non-failed devices as
in-sync when we have the data but haven't actually written it out yet.

Reported-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c