Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311556
b: refs/heads/master
c: 7c2c57c
h: refs/heads/master
v: v3
  • Loading branch information
majianpeng authored and NeilBrown committed Jul 3, 2012
1 parent b297775 commit b8b2e71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1850753d2e6d9ca7856581ca5d3cf09521e6a5d7
refs/heads/master: 7c2c57c9a98bf5961e438a376486f95346f6b0c5
3 changes: 3 additions & 0 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -7298,6 +7298,7 @@ void md_do_sync(struct mddev *mddev)
int skipped = 0;
struct md_rdev *rdev;
char *desc;
struct blk_plug plug;

/* just incase thread restarts... */
if (test_bit(MD_RECOVERY_DONE, &mddev->recovery))
Expand Down Expand Up @@ -7447,6 +7448,7 @@ void md_do_sync(struct mddev *mddev)
}
mddev->curr_resync_completed = j;

blk_start_plug(&plug);
while (j < max_sectors) {
sector_t sectors;

Expand Down Expand Up @@ -7552,6 +7554,7 @@ void md_do_sync(struct mddev *mddev)
* this also signals 'finished resyncing' to md_stop
*/
out:
blk_finish_plug(&plug);
wait_event(mddev->recovery_wait, !atomic_read(&mddev->recovery_active));

/* tell personality that we are finished */
Expand Down

0 comments on commit b8b2e71

Please sign in to comment.