aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 121fbaa9ed59..ce154553aca5 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -1292,6 +1292,11 @@ static void handle_stripe(struct stripe_head *sh)
1292 !memcmp(pagea, pagea+4, STRIPE_SIZE-4)) { 1292 !memcmp(pagea, pagea+4, STRIPE_SIZE-4)) {
1293 /* parity is correct (on disc, not in buffer any more) */ 1293 /* parity is correct (on disc, not in buffer any more) */
1294 set_bit(STRIPE_INSYNC, &sh->state); 1294 set_bit(STRIPE_INSYNC, &sh->state);
1295 } else {
1296 conf->mddev->resync_mismatches += STRIPE_SECTORS;
1297 if (test_bit(MD_RECOVERY_CHECK, &conf->mddev->recovery))
1298 /* don't try to repair!! */
1299 set_bit(STRIPE_INSYNC, &sh->state);
1295 } 1300 }
1296 } 1301 }
1297 if (!test_bit(STRIPE_INSYNC, &sh->state)) { 1302 if (!test_bit(STRIPE_INSYNC, &sh->state)) {