|
@@ -3071,7 +3071,7 @@ static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped
|
|
|
release_stripe(sh);
|
|
|
}
|
|
|
spin_lock_irq(&conf->device_lock);
|
|
|
- conf->expand_progress = (sector_nr + i)*(conf->raid_disks-1);
|
|
|
+ conf->expand_progress = (sector_nr + i) * new_data_disks;
|
|
|
spin_unlock_irq(&conf->device_lock);
|
|
|
/* Ok, those stripe are ready. We can start scheduling
|
|
|
* reads on the source stripes.
|