aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_main.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-03-22 05:55:48 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 10:44:52 -0500
commite307f352b4a6b4411136acd8cab20f9259ba182a (patch)
tree4b4c2649ff5b6f4bb01571ca7ad024ae903b353a /drivers/block/drbd/drbd_main.c
parent0916e0e308716387f16462f66b53c9128587fd0b (diff)
drbd: Move drbd_send_ping() and drbd_send_ping_ack() to drbd_main.c
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_main.c')
-rw-r--r--drivers/block/drbd/drbd_main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index a1deab6f1309..d9828612c8e8 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -765,6 +765,18 @@ int conn_send_cmd2(struct drbd_tconn *tconn, enum drbd_packet cmd, char *data,
765 return err; 765 return err;
766} 766}
767 767
768int drbd_send_ping(struct drbd_tconn *tconn)
769{
770 struct p_header h;
771 return !conn_send_cmd(tconn, 0, &tconn->meta, P_PING, &h, sizeof(h));
772}
773
774int drbd_send_ping_ack(struct drbd_tconn *tconn)
775{
776 struct p_header h;
777 return !conn_send_cmd(tconn, 0, &tconn->meta, P_PING_ACK, &h, sizeof(h));
778}
779
768int drbd_send_sync_param(struct drbd_conf *mdev) 780int drbd_send_sync_param(struct drbd_conf *mdev)
769{ 781{
770 struct p_rs_param_95 *p; 782 struct p_rs_param_95 *p;