aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-03-12 20:21:18 -0400
committerNeilBrown <neilb@suse.de>2012-03-12 20:21:18 -0400
commit1e3fa9bd5061778fb5cf4648e4e8321e8cbbb95b (patch)
treede51166f0369e17cc2cb20566b61b7b3c873d7fc /drivers/md/raid5.c
parentfde7d9049e55ab85a390be7f415d74c9f62dd0f9 (diff)
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: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 360f2b98f62b..8b3eb41d3eef 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -5592,6 +5592,7 @@ static int raid5_start_reshape(struct mddev *mddev)
5592 spin_lock_irq(&conf->device_lock); 5592 spin_lock_irq(&conf->device_lock);
5593 mddev->raid_disks = conf->raid_disks = conf->previous_raid_disks; 5593 mddev->raid_disks = conf->raid_disks = conf->previous_raid_disks;
5594 conf->reshape_progress = MaxSector; 5594 conf->reshape_progress = MaxSector;
5595 mddev->reshape_position = MaxSector;
5595 spin_unlock_irq(&conf->device_lock); 5596 spin_unlock_irq(&conf->device_lock);
5596 return -EAGAIN; 5597 return -EAGAIN;
5597 } 5598 }