Commit 1e3fa9bd authored by NeilBrown's avatar NeilBrown

md/raid5: make sure reshape_position is cleared on error path.

Leaving a valid reshape_position value in place could be confusing.
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent fde7d904
...@@ -5592,6 +5592,7 @@ static int raid5_start_reshape(struct mddev *mddev) ...@@ -5592,6 +5592,7 @@ static int raid5_start_reshape(struct mddev *mddev)
spin_lock_irq(&conf->device_lock); spin_lock_irq(&conf->device_lock);
mddev->raid_disks = conf->raid_disks = conf->previous_raid_disks; mddev->raid_disks = conf->raid_disks = conf->previous_raid_disks;
conf->reshape_progress = MaxSector; conf->reshape_progress = MaxSector;
mddev->reshape_position = MaxSector;
spin_unlock_irq(&conf->device_lock); spin_unlock_irq(&conf->device_lock);
return -EAGAIN; return -EAGAIN;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment