diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 175c424f201f..0da25daea9be 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -5159,9 +5159,10 @@ static int add_new_disk(mddev_t * mddev, mdu_disk_info_t *info) | |||
5159 | /* set saved_raid_disk if appropriate */ | 5159 | /* set saved_raid_disk if appropriate */ |
5160 | if (!mddev->persistent) { | 5160 | if (!mddev->persistent) { |
5161 | if (info->state & (1<<MD_DISK_SYNC) && | 5161 | if (info->state & (1<<MD_DISK_SYNC) && |
5162 | info->raid_disk < mddev->raid_disks) | 5162 | info->raid_disk < mddev->raid_disks) { |
5163 | rdev->raid_disk = info->raid_disk; | 5163 | rdev->raid_disk = info->raid_disk; |
5164 | else | 5164 | set_bit(In_sync, &rdev->flags); |
5165 | } else | ||
5165 | rdev->raid_disk = -1; | 5166 | rdev->raid_disk = -1; |
5166 | } else | 5167 | } else |
5167 | super_types[mddev->major_version]. | 5168 | super_types[mddev->major_version]. |