|
@@ -3062,7 +3062,7 @@ static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s)
|
|
|
}
|
|
|
} else if (test_bit(In_sync, &rdev->flags))
|
|
|
set_bit(R5_Insync, &dev->flags);
|
|
|
- else {
|
|
|
+ else if (!test_bit(Faulty, &rdev->flags)) {
|
|
|
/* in sync if before recovery_offset */
|
|
|
if (sh->sector + STRIPE_SECTORS <= rdev->recovery_offset)
|
|
|
set_bit(R5_Insync, &dev->flags);
|