[PATCH] md: fix calculation of ->degraded for multipath and raid10
Two less-used md personalities have bugs in the calculation of ->degraded (the extent to which the array is degraded). Signed-off-by: Neil Brown <neilb@suse.de> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
3c5473f807
commit
2e333e8986
@@ -2079,7 +2079,7 @@ static int run(mddev_t *mddev)
|
||||
disk = conf->mirrors + i;
|
||||
|
||||
if (!disk->rdev ||
|
||||
!test_bit(In_sync, &rdev->flags)) {
|
||||
!test_bit(In_sync, &disk->rdev->flags)) {
|
||||
disk->head_position = 0;
|
||||
mddev->degraded++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user