diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 923d1250b9a9..c50931352b23 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -5073,14 +5073,6 @@ void md_set_array_sectors(mddev_t *mddev, sector_t array_sectors) | |||
5073 | } | 5073 | } |
5074 | EXPORT_SYMBOL(md_set_array_sectors); | 5074 | EXPORT_SYMBOL(md_set_array_sectors); |
5075 | 5075 | ||
5076 | void md_set_array_sectors_lock(mddev_t *mddev, sector_t array_sectors) | ||
5077 | { | ||
5078 | mddev_lock(mddev); | ||
5079 | md_set_array_sectors(mddev, array_sectors); | ||
5080 | mddev_unlock(mddev); | ||
5081 | } | ||
5082 | EXPORT_SYMBOL(md_set_array_sectors_lock); | ||
5083 | |||
5084 | static int update_size(mddev_t *mddev, sector_t num_sectors) | 5076 | static int update_size(mddev_t *mddev, sector_t num_sectors) |
5085 | { | 5077 | { |
5086 | mdk_rdev_t *rdev; | 5078 | mdk_rdev_t *rdev; |
@@ -6641,6 +6633,9 @@ void md_check_recovery(mddev_t *mddev) | |||
6641 | sysfs_notify(&mddev->kobj, NULL, | 6633 | sysfs_notify(&mddev->kobj, NULL, |
6642 | "degraded"); | 6634 | "degraded"); |
6643 | } | 6635 | } |
6636 | if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && | ||
6637 | mddev->pers->finish_reshape) | ||
6638 | mddev->pers->finish_reshape(mddev); | ||
6644 | md_update_sb(mddev, 1); | 6639 | md_update_sb(mddev, 1); |
6645 | 6640 | ||
6646 | /* if array is no-longer degraded, then any saved_raid_disk | 6641 | /* if array is no-longer degraded, then any saved_raid_disk |