diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-17 10:01:34 +0100 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-17 10:01:34 +0100 |
commit | bb9074ff58fe745e4f244f76209241909c82ec9c (patch) | |
tree | cf6be00ab88b1e315f6b74a896a370440f677599 /drivers/md/md.c | |
parent | sysctl: Remove the last of the generic binary sysctl support (diff) | |
parent | Linux 2.6.32-rc7 (diff) | |
download | linux-bb9074ff58fe745e4f244f76209241909c82ec9c.tar.xz linux-bb9074ff58fe745e4f244f76209241909c82ec9c.zip |
Merge commit 'v2.6.32-rc7'
Resolve the conflict between v2.6.32-rc7 where dn_def_dev_handler
gets a small bug fix and the sysctl tree where I am removing all
sysctl strategy routines.
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index e9cad8889cf9..1d529551e944 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -6500,8 +6500,9 @@ void md_do_sync(mddev_t *mddev) skip: mddev->curr_resync = 0; mddev->curr_resync_completed = 0; - mddev->resync_min = 0; - mddev->resync_max = MaxSector; + if (!test_bit(MD_RECOVERY_INTR, &mddev->recovery)) + /* We completed so max setting can be forgotten. */ + mddev->resync_max = MaxSector; sysfs_notify(&mddev->kobj, NULL, "sync_completed"); wake_up(&resync_wait); set_bit(MD_RECOVERY_DONE, &mddev->recovery); |