Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345794
b: refs/heads/master
c: 4d641dd
h: refs/heads/master
v: v3
  • Loading branch information
Philipp Reisner committed Sep 28, 2011
1 parent 42553ad commit c8bb0e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 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: f1b3a6ec7d2b3033b18c6ad125f5694c85599c4a
refs/heads/master: 4d641dd7b027dd494c9ae72b0723f612aca621bd
22 changes: 11 additions & 11 deletions trunk/drivers/block/drbd/drbd_receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -4226,33 +4226,33 @@ static int drbd_do_auth(struct drbd_tconn *tconn)

int drbdd_init(struct drbd_thread *thi)
{
struct drbd_conf *mdev = thi->mdev;
struct drbd_tconn *tconn = thi->mdev->tconn;
int h;

dev_info(DEV, "receiver (re)started\n");
conn_info(tconn, "receiver (re)started\n");

do {
h = drbd_connect(mdev->tconn);
h = drbd_connect(tconn);
if (h == 0) {
drbd_disconnect(mdev->tconn);
drbd_disconnect(tconn);
schedule_timeout_interruptible(HZ);
}
if (h == -1) {
dev_warn(DEV, "Discarding network configuration.\n");
drbd_force_state(mdev, NS(conn, C_DISCONNECTING));
conn_warn(tconn, "Discarding network configuration.\n");
drbd_force_state(tconn->volume0, NS(conn, C_DISCONNECTING));
}
} while (h == 0);

if (h > 0) {
if (get_net_conf(mdev->tconn)) {
drbdd(mdev->tconn);
put_net_conf(mdev->tconn);
if (get_net_conf(tconn)) {
drbdd(tconn);
put_net_conf(tconn);
}
}

drbd_disconnect(mdev->tconn);
drbd_disconnect(tconn);

dev_info(DEV, "receiver terminated\n");
conn_info(tconn, "receiver terminated\n");
return 0;
}

Expand Down

0 comments on commit c8bb0e5

Please sign in to comment.