diff options
author | NeilBrown <neilb@suse.de> | 2011-01-30 22:30:27 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-01-30 22:30:27 -0500 |
commit | 7281f8129c362436237b82c8c026494dd36479dc (patch) | |
tree | c12196b42c807d4ee80d5f6e1657f31fa3ea4d7b /drivers/md | |
parent | a8c42c7f476b5bb39bb3a5b32d5473b9a46cadb9 (diff) |
md: don't clear curr_resync_completed at end of resync.
There is no need to set this to zero at this point. It will be
set to zero by remove_and_add_spares or at the start of
md_do_sync at the latest.
And setting it to zero before MD_RECOVERY_RUNNING is cleared can
make a 'zero' appear briefly in the 'sync_completed' sysfs attribute
just as resync is finishing.
So simply remove this setting to zero.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 5b93829f3d49..f2d5628d51cb 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -6984,9 +6984,6 @@ void md_do_sync(mddev_t *mddev) | |||
6984 | } else if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) | 6984 | } else if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) |
6985 | mddev->resync_min = mddev->curr_resync_completed; | 6985 | mddev->resync_min = mddev->curr_resync_completed; |
6986 | mddev->curr_resync = 0; | 6986 | mddev->curr_resync = 0; |
6987 | if (!test_bit(MD_RECOVERY_INTR, &mddev->recovery)) | ||
6988 | mddev->curr_resync_completed = 0; | ||
6989 | sysfs_notify(&mddev->kobj, NULL, "sync_completed"); | ||
6990 | wake_up(&resync_wait); | 6987 | wake_up(&resync_wait); |
6991 | set_bit(MD_RECOVERY_DONE, &mddev->recovery); | 6988 | set_bit(MD_RECOVERY_DONE, &mddev->recovery); |
6992 | md_wakeup_thread(mddev->thread); | 6989 | md_wakeup_thread(mddev->thread); |