summaryrefslogtreecommitdiffstats
path: root/include/linux/ceph/messenger.h
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2015-09-01 17:19:38 +0800
committerIlya Dryomov <idryomov@gmail.com>2015-09-08 23:14:30 +0300
commit8b9558aab853e98ba6e3fee0dd8545544966958c (patch)
tree5713cf3431ba724e7fdffe0a0214a6ec3b7d0ccb /include/linux/ceph/messenger.h
parentd194cd1dd1be61249b08e5461ae8a9c05d1072c9 (diff)
downloadlinux-stable-8b9558aab853e98ba6e3fee0dd8545544966958c.tar.gz
linux-stable-8b9558aab853e98ba6e3fee0dd8545544966958c.tar.bz2
linux-stable-8b9558aab853e98ba6e3fee0dd8545544966958c.zip
libceph: use keepalive2 to verify the mon session is alive
Signed-off-by: Yan, Zheng <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph/messenger.h')
-rw-r--r--include/linux/ceph/messenger.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h
index 37753278987a..7e1252e97a30 100644
--- a/include/linux/ceph/messenger.h
+++ b/include/linux/ceph/messenger.h
@@ -248,6 +248,8 @@ struct ceph_connection {
int in_base_pos; /* bytes read */
__le64 in_temp_ack; /* for reading an ack */
+ struct timespec last_keepalive_ack;
+
struct delayed_work work; /* send|recv work */
unsigned long delay; /* current delay interval */
};
@@ -285,6 +287,8 @@ extern void ceph_msg_revoke(struct ceph_msg *msg);
extern void ceph_msg_revoke_incoming(struct ceph_msg *msg);
extern void ceph_con_keepalive(struct ceph_connection *con);
+extern bool ceph_con_keepalive_expired(struct ceph_connection *con,
+ unsigned long interval);
extern void ceph_msg_data_add_pages(struct ceph_msg *msg, struct page **pages,
size_t length, size_t alignment);