projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fde7d90
)
md/raid5: make sure reshape_position is cleared on error path.
author
NeilBrown
<neilb@suse.de>
Tue, 13 Mar 2012 00:21:18 +0000
(11:21 +1100)
committer
NeilBrown
<neilb@suse.de>
Tue, 13 Mar 2012 00:21:18 +0000
(11:21 +1100)
Leaving a valid reshape_position value in place could be confusing.
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/raid5.c
b/drivers/md/raid5.c
index 360f2b98f62b3eaf946d3420e816c822bbe9e37e..8b3eb41d3eef6e93ebf6fd743706d80abf35cfd8 100644
(file)
--- a/
drivers/md/raid5.c
+++ b/
drivers/md/raid5.c
@@
-5592,6
+5592,7
@@
static int raid5_start_reshape(struct mddev *mddev)
spin_lock_irq(&conf->device_lock);
mddev->raid_disks = conf->raid_disks = conf->previous_raid_disks;
conf->reshape_progress = MaxSector;
+ mddev->reshape_position = MaxSector;
spin_unlock_irq(&conf->device_lock);
return -EAGAIN;
}