Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251279
b: refs/heads/master
c: 21423fa
h: refs/heads/master
i:
  251277: 29f7d04
  251275: e16d028
  251271: 7712340
  251263: b48118c
v: v3
  • Loading branch information
Philipp Reisner committed May 24, 2011
1 parent dc1c7d8 commit ac3f2d2
Show file tree
Hide file tree
Showing 2 changed files with 15 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: fa7d939663b61f5c2bd3436d3aa126d4c0f47aa8
refs/heads/master: 21423fa79119a80e335de0c82ec29f67ed59f1bc
15 changes: 14 additions & 1 deletion trunk/drivers/block/drbd/drbd_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,22 @@ static int _try_outdate_peer_async(void *data)
{
struct drbd_conf *mdev = (struct drbd_conf *)data;
enum drbd_disk_state nps;
union drbd_state ns;

nps = drbd_try_outdate_peer(mdev);
drbd_request_state(mdev, NS(pdsk, nps));

/* Not using
drbd_request_state(mdev, NS(pdsk, nps));
here, because we might were able to re-establish the connection in the
meantime.
*/
spin_lock_irq(&mdev->req_lock);
ns = mdev->state;
if (ns.conn < C_WF_REPORT_PARAMS) {
ns.pdsk = nps;
_drbd_set_state(mdev, ns, CS_VERBOSE, NULL);
}
spin_unlock_irq(&mdev->req_lock);

return 0;
}
Expand Down

0 comments on commit ac3f2d2

Please sign in to comment.