diff options
author | NeilBrown <neilb@suse.de> | 2009-08-02 20:59:57 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-08-02 20:59:57 -0400 |
commit | e516402c0d4fc02be4af9fa8c18954d4f9deb44e (patch) | |
tree | 8fa40d8f835d643ed903e1a89567a53256acc395 /drivers/md | |
parent | 70471dafe3390243c598a3165dfb86b8b8b3f4fe (diff) |
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/md')
-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 39374230a463..659151e5eda4 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -5000,7 +5000,7 @@ static int raid5_start_reshape(mddev_t *mddev) | |||
5000 | spin_unlock_irqrestore(&conf->device_lock, flags); | 5000 | spin_unlock_irqrestore(&conf->device_lock, flags); |
5001 | } | 5001 | } |
5002 | mddev->raid_disks = conf->raid_disks; | 5002 | mddev->raid_disks = conf->raid_disks; |
5003 | mddev->reshape_position = 0; | 5003 | mddev->reshape_position = conf->reshape_progress; |
5004 | set_bit(MD_CHANGE_DEVS, &mddev->flags); | 5004 | set_bit(MD_CHANGE_DEVS, &mddev->flags); |
5005 | 5005 | ||
5006 | clear_bit(MD_RECOVERY_SYNC, &mddev->recovery); | 5006 | clear_bit(MD_RECOVERY_SYNC, &mddev->recovery); |