diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-04-01 06:49:42 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 10:45:07 -0500 |
commit | a17647aae4bcb272ad98ebe9de694a1b87b84989 (patch) | |
tree | 80443c885c35b083089aa2b3b84fe341ae2fda8d /drivers/block/drbd/drbd_receiver.c | |
parent | 8b924f1d63ca969581afcbb198237643a38ecd0f (diff) |
drbd: drbd_send_ping(), drbd_send_ping(): Return 0 upon success and an error code otherwise
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_receiver.c')
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 9ad8dd3a8481..61104dbb0172 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -4498,7 +4498,7 @@ static int got_RqSReply(struct drbd_tconn *tconn, struct packet_info *pi) | |||
4498 | 4498 | ||
4499 | static int got_Ping(struct drbd_tconn *tconn, struct packet_info *pi) | 4499 | static int got_Ping(struct drbd_tconn *tconn, struct packet_info *pi) |
4500 | { | 4500 | { |
4501 | return drbd_send_ping_ack(tconn); | 4501 | return !drbd_send_ping_ack(tconn); |
4502 | 4502 | ||
4503 | } | 4503 | } |
4504 | 4504 | ||
@@ -4851,7 +4851,7 @@ int drbd_asender(struct drbd_thread *thi) | |||
4851 | while (get_t_state(thi) == RUNNING) { | 4851 | while (get_t_state(thi) == RUNNING) { |
4852 | drbd_thread_current_set_cpu(thi); | 4852 | drbd_thread_current_set_cpu(thi); |
4853 | if (test_and_clear_bit(SEND_PING, &tconn->flags)) { | 4853 | if (test_and_clear_bit(SEND_PING, &tconn->flags)) { |
4854 | if (!drbd_send_ping(tconn)) { | 4854 | if (drbd_send_ping(tconn)) { |
4855 | conn_err(tconn, "drbd_send_ping has failed\n"); | 4855 | conn_err(tconn, "drbd_send_ping has failed\n"); |
4856 | goto reconnect; | 4856 | goto reconnect; |
4857 | } | 4857 | } |