Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242899
b: refs/heads/master
c: 79a30d2
h: refs/heads/master
i:
  242897: 0274c47
  242895: 881a7dd
v: v3
  • Loading branch information
Lars Ellenberg authored and Philipp Reisner committed Mar 10, 2011
1 parent 7ff5deb commit 1346936
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 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: 54b956abef2c1ab339fd01792e69e4a921a5e487
refs/heads/master: 79a30d2d71f7be862de93228fe9b919ef664af52
12 changes: 11 additions & 1 deletion trunk/drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1593,8 +1593,18 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,
if (os.disk < D_UP_TO_DATE && os.conn >= C_SYNC_SOURCE && ns.conn == C_CONNECTED)
drbd_send_state(mdev);

if (os.conn > C_CONNECTED && ns.conn <= C_CONNECTED)
/* This triggers bitmap writeout of potentially still unwritten pages
* if the resync finished cleanly, or aborted because of peer disk
* failure. Resync aborted because of connection failure does bitmap
* writeout from drbd_disconnect.
* For resync aborted because of local disk failure, we cannot do
* any bitmap writeout anymore.
*/
if (os.conn > C_CONNECTED && ns.conn == C_CONNECTED &&
mdev->state.conn == C_CONNECTED && get_ldev(mdev)) {
drbd_queue_bitmap_io(mdev, &drbd_bm_write, NULL, "write from resync_finished");
put_ldev(mdev);
}

/* free tl_hash if we Got thawed and are C_STANDALONE */
if (ns.conn == C_STANDALONE && !is_susp(ns) && mdev->tl_hash)
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/block/drbd/drbd_receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -3811,6 +3811,7 @@ static void drbd_disconnect(struct drbd_conf *mdev)

fp = FP_DONT_CARE;
if (get_ldev(mdev)) {
drbd_bitmap_io(mdev, &drbd_bm_write, "write from disconnect");
fp = mdev->ldev->dc.fencing;
put_ldev(mdev);
}
Expand Down

0 comments on commit 1346936

Please sign in to comment.