aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph/messenger.h
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-06-27 15:24:08 -0400
committerSage Weil <sage@inktank.com>2012-07-06 00:14:35 -0400
commitb7a9e5dd40f17a48a72f249b8bbc989b63bae5fd (patch)
treef4951e53776e2ec45f9b539b786be67c8a7f42a2 /include/linux/ceph/messenger.h
parent261030215d970c62f799e6e508e3c68fc7ec2aa9 (diff)
libceph: set peer name on con_open, not init
The peer name may change on each open attempt, even when the connection is reused. Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'include/linux/ceph/messenger.h')
-rw-r--r--include/linux/ceph/messenger.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h
index dd4ef1f8ec93..478f814f2100 100644
--- a/include/linux/ceph/messenger.h
+++ b/include/linux/ceph/messenger.h
@@ -232,9 +232,9 @@ extern void ceph_messenger_init(struct ceph_messenger *msgr,
232 232
233extern void ceph_con_init(struct ceph_connection *con, void *private, 233extern void ceph_con_init(struct ceph_connection *con, void *private,
234 const struct ceph_connection_operations *ops, 234 const struct ceph_connection_operations *ops,
235 struct ceph_messenger *msgr, __u8 entity_type, 235 struct ceph_messenger *msgr);
236 __u64 entity_num);
237extern void ceph_con_open(struct ceph_connection *con, 236extern void ceph_con_open(struct ceph_connection *con,
237 __u8 entity_type, __u64 entity_num,
238 struct ceph_entity_addr *addr); 238 struct ceph_entity_addr *addr);
239extern bool ceph_con_opened(struct ceph_connection *con); 239extern bool ceph_con_opened(struct ceph_connection *con);
240extern void ceph_con_close(struct ceph_connection *con); 240extern void ceph_con_close(struct ceph_connection *con);