Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176078
b: refs/heads/master
c: c07b70a
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown committed Dec 14, 2009
1 parent beefd08 commit 7a68aa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7820f9e1dddcfebae2698fb2a245d04ce3aa6e74
refs/heads/master: c07b70ad32ed0a5ec9735cafb1aa10b3a2298b7d
10 changes: 7 additions & 3 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -6524,11 +6524,15 @@ void md_do_sync(mddev_t *mddev)
set_bit(MD_CHANGE_DEVS, &mddev->flags);

skip:
if (!test_bit(MD_RECOVERY_INTR, &mddev->recovery)) {
/* We completed so min/max setting can be forgotten if used. */
if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery))
mddev->resync_min = 0;
mddev->resync_max = MaxSector;
} else if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery))
mddev->resync_min = mddev->curr_resync_completed;
mddev->curr_resync = 0;
mddev->curr_resync_completed = 0;
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);
Expand Down

0 comments on commit 7a68aa3

Please sign in to comment.