Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345877
b: refs/heads/master
c: f19e4f8
h: refs/heads/master
i:
  345875: bb1f699
v: v3
  • Loading branch information
Philipp Reisner committed Nov 3, 2012
1 parent 79e2fb5 commit 3a01b4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: a4fbda8eca8a56527033bea8efd3190dbcf3acc6
refs/heads/master: f19e4f8ba7a785c7250c04715b020d7eb8eda00a
11 changes: 5 additions & 6 deletions trunk/drivers/block/drbd/drbd_receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -4441,15 +4441,14 @@ static int got_RqSReply(struct drbd_conf *mdev, enum drbd_packet cmd)
return true;
}

static int got_Ping(struct drbd_conf *mdev, enum drbd_packet cmd)
static int got_Ping(struct drbd_tconn *tconn, enum drbd_packet cmd)
{
return drbd_send_ping_ack(mdev->tconn);
return drbd_send_ping_ack(tconn);

}

static int got_PingAck(struct drbd_conf *mdev, enum drbd_packet cmd)
static int got_PingAck(struct drbd_tconn *tconn, enum drbd_packet cmd)
{
struct drbd_tconn *tconn = mdev->tconn;
/* restore idle timeout */
tconn->meta.socket->sk->sk_rcvtimeo = tconn->net_conf->ping_int*HZ;
if (!test_and_set_bit(GOT_PING_ACK, &tconn->flags))
Expand Down Expand Up @@ -4729,8 +4728,8 @@ struct asender_cmd {
};

static struct asender_cmd asender_tbl[] = {
[P_PING] = { sizeof(struct p_header), MDEV, { got_Ping } },
[P_PING_ACK] = { sizeof(struct p_header), MDEV, { got_PingAck } },
[P_PING] = { sizeof(struct p_header), CONN, { .conn_fn = got_Ping } },
[P_PING_ACK] = { sizeof(struct p_header), CONN, { .conn_fn = got_PingAck } },
[P_RECV_ACK] = { sizeof(struct p_block_ack), MDEV, { got_BlockAck } },
[P_WRITE_ACK] = { sizeof(struct p_block_ack), MDEV, { got_BlockAck } },
[P_RS_WRITE_ACK] = { sizeof(struct p_block_ack), MDEV, { got_BlockAck } },
Expand Down

0 comments on commit 3a01b4e

Please sign in to comment.