Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345981
b: refs/heads/master
c: a17647a
h: refs/heads/master
i:
  345979: 5d4adc0
v: v3
  • Loading branch information
Andreas Gruenbacher authored and Philipp Reisner committed Nov 8, 2012
1 parent 81bdfd2 commit 9831583
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 8b924f1d63ca969581afcbb198237643a38ecd0f
refs/heads/master: a17647aae4bcb272ad98ebe9de694a1b87b84989
4 changes: 2 additions & 2 deletions trunk/drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,13 +768,13 @@ int conn_send_cmd2(struct drbd_tconn *tconn, enum drbd_packet cmd, char *data,
int drbd_send_ping(struct drbd_tconn *tconn)
{
struct p_header h;
return !conn_send_cmd(tconn, 0, &tconn->meta, P_PING, &h, sizeof(h));
return conn_send_cmd(tconn, 0, &tconn->meta, P_PING, &h, sizeof(h));
}

int drbd_send_ping_ack(struct drbd_tconn *tconn)
{
struct p_header h;
return !conn_send_cmd(tconn, 0, &tconn->meta, P_PING_ACK, &h, sizeof(h));
return conn_send_cmd(tconn, 0, &tconn->meta, P_PING_ACK, &h, sizeof(h));
}

int drbd_send_sync_param(struct drbd_conf *mdev)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/block/drbd/drbd_receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -4498,7 +4498,7 @@ static int got_RqSReply(struct drbd_tconn *tconn, struct packet_info *pi)

static int got_Ping(struct drbd_tconn *tconn, struct packet_info *pi)
{
return drbd_send_ping_ack(tconn);
return !drbd_send_ping_ack(tconn);

}

Expand Down Expand Up @@ -4851,7 +4851,7 @@ int drbd_asender(struct drbd_thread *thi)
while (get_t_state(thi) == RUNNING) {
drbd_thread_current_set_cpu(thi);
if (test_and_clear_bit(SEND_PING, &tconn->flags)) {
if (!drbd_send_ping(tconn)) {
if (drbd_send_ping(tconn)) {
conn_err(tconn, "drbd_send_ping has failed\n");
goto reconnect;
}
Expand Down

0 comments on commit 9831583

Please sign in to comment.