aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid10.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 834bf0f86222..5bd1e9ec899d 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -1474,7 +1474,13 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, i
1474 } 1474 }
1475 } 1475 }
1476 if (j == conf->copies) { 1476 if (j == conf->copies) {
1477 BUG(); 1477 /* Cannot recover, so abort the recovery */
1478 put_buf(r10_bio);
1479 r10_bio = rb2;
1480 if (!test_and_set_bit(MD_RECOVERY_ERR, &mddev->recovery))
1481 printk(KERN_INFO "raid10: %s: insufficient working devices for recovery.\n",
1482 mdname(mddev));
1483 break;
1478 } 1484 }
1479 } 1485 }
1480 if (biolist == NULL) { 1486 if (biolist == NULL) {