aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 0b830bbe1d8b..d8b2d7b0c3be 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1210,6 +1210,7 @@ static int raid1_remove_disk(mddev_t *mddev, int number)
1210 * is not possible. 1210 * is not possible.
1211 */ 1211 */
1212 if (!test_bit(Faulty, &rdev->flags) && 1212 if (!test_bit(Faulty, &rdev->flags) &&
1213 !mddev->recovery_disabled &&
1213 mddev->degraded < conf->raid_disks) { 1214 mddev->degraded < conf->raid_disks) {
1214 err = -EBUSY; 1215 err = -EBUSY;
1215 goto abort; 1216 goto abort;