]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5de36dc0752c8b6b22b02553d7a1871ffd498f6f
tree2738ff3d5acfbe899f30c4991175f945211e941d
parenteabd596c73341e0288619a17720a1db04d1de556
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