diff options
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index b76cfc89e1b5..e636e404e9a5 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -5578,6 +5578,8 @@ static int update_raid_disks(mddev_t *mddev, int raid_disks) | |||
5578 | mddev->delta_disks = raid_disks - mddev->raid_disks; | 5578 | mddev->delta_disks = raid_disks - mddev->raid_disks; |
5579 | 5579 | ||
5580 | rv = mddev->pers->check_reshape(mddev); | 5580 | rv = mddev->pers->check_reshape(mddev); |
5581 | if (rv < 0) | ||
5582 | mddev->delta_disks = 0; | ||
5581 | return rv; | 5583 | return rv; |
5582 | } | 5584 | } |
5583 | 5585 | ||