Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242825
b: refs/heads/master
c: 59817f4
h: refs/heads/master
i:
  242823: b22432c
v: v3
  • Loading branch information
Philipp Reisner committed Mar 10, 2011
1 parent 8593b69 commit 922ae8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: c4752ef1284519c3baa1c3b19df34a80b4905245
refs/heads/master: 59817f4fab6a165ba83ce399464ba38432db8233
9 changes: 7 additions & 2 deletions trunk/drivers/block/drbd/drbd_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -1485,8 +1485,13 @@ void drbd_start_resync(struct drbd_conf *mdev, enum drbd_conns side)
return;
}

/* In case a previous resync run was aborted by an IO error/detach on the peer. */
drbd_rs_cancel_all(mdev);
if (mdev->state.conn < C_AHEAD) {
/* In case a previous resync run was aborted by an IO error/detach on the peer. */
drbd_rs_cancel_all(mdev);
/* This should be done when we abort the resync. We definitely do not
want to have this for connections going back and forth between
Ahead/Behind and SyncSource/SyncTarget */
}

if (side == C_SYNC_TARGET) {
/* Since application IO was locked out during C_WF_BITMAP_T and
Expand Down

0 comments on commit 922ae8e

Please sign in to comment.