diff options
author | NeilBrown <neilb@suse.de> | 2009-08-03 10:59:57 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-08-03 10:59:57 +1000 |
commit | e516402c0d4fc02be4af9fa8c18954d4f9deb44e (patch) | |
tree | 8fa40d8f835d643ed903e1a89567a53256acc395 /drivers | |
parent | 70471dafe3390243c598a3165dfb86b8b8b3f4fe (diff) | |
download | linux-3.10-e516402c0d4fc02be4af9fa8c18954d4f9deb44e.tar.gz linux-3.10-e516402c0d4fc02be4af9fa8c18954d4f9deb44e.tar.bz2 linux-3.10-e516402c0d4fc02be4af9fa8c18954d4f9deb44e.zip |
md/raid5: set reshape_position correctly when reshape starts.
As the internal reshape_progress counter is the main driver
for reshape, the fact that reshape_position sometimes starts with the
wrong value has minimal effect. It is visible in sysfs and that
is all.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/raid5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 39374230a46..659151e5eda 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -5000,7 +5000,7 @@ static int raid5_start_reshape(mddev_t *mddev) spin_unlock_irqrestore(&conf->device_lock, flags); } mddev->raid_disks = conf->raid_disks; - mddev->reshape_position = 0; + mddev->reshape_position = conf->reshape_progress; set_bit(MD_CHANGE_DEVS, &mddev->flags); clear_bit(MD_RECOVERY_SYNC, &mddev->recovery); |