md/raid5: fix a hang on device failure.
authorNeilBrown <neilb@suse.de>
Wed, 31 Aug 2011 02:49:14 +0000 (12:49 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 31 Aug 2011 02:49:14 +0000 (12:49 +1000)
commit43220aa0f22cd3ce5b30246d50ccd696d119edea
tree2738ff3d5acfbe899f30c4991175f945211e941d
parent7da64a0abc3b2c6cbd3521672e9bb74dd560bb89
md/raid5: fix a hang on device failure.

Waiting for a 'blocked' rdev to become unblocked in the raid5d thread
cannot work with internal metadata as it is the raid5d thread which
will clear the blocked flag.
This wasn't a problem in 3.0 and earlier as we only set the blocked
flag when external metadata was used then.
However we now set it always, so we need to be more careful.

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