diff options
-rw-r--r-- | drivers/md/raid5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index eea9379f7fae..521bf2605f82 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -3062,7 +3062,7 @@ static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s) | |||
3062 | } | 3062 | } |
3063 | } else if (test_bit(In_sync, &rdev->flags)) | 3063 | } else if (test_bit(In_sync, &rdev->flags)) |
3064 | set_bit(R5_Insync, &dev->flags); | 3064 | set_bit(R5_Insync, &dev->flags); |
3065 | else { | 3065 | else if (!test_bit(Faulty, &rdev->flags)) { |
3066 | /* in sync if before recovery_offset */ | 3066 | /* in sync if before recovery_offset */ |
3067 | if (sh->sector + STRIPE_SECTORS <= rdev->recovery_offset) | 3067 | if (sh->sector + STRIPE_SECTORS <= rdev->recovery_offset) |
3068 | set_bit(R5_Insync, &dev->flags); | 3068 | set_bit(R5_Insync, &dev->flags); |