]> 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)
commit007fc1d98b91c6bf66ddfe060d7c17d5a568842e
tree2738ff3d5acfbe899f30c4991175f945211e941d
parent1ab88ef53dc1b4b4fe1d42a8c8318d0f7214931b
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