aboutsummaryrefslogtreecommitdiffstats
path: root/net/ceph/mon_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ceph/mon_client.c')
-rw-r--r--net/ceph/mon_client.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/net/ceph/mon_client.c b/net/ceph/mon_client.c
index ac4d6b100730..062b72478077 100644
--- a/net/ceph/mon_client.c
+++ b/net/ceph/mon_client.c
@@ -1029,9 +1029,23 @@ out:
1029 mutex_unlock(&monc->mutex); 1029 mutex_unlock(&monc->mutex);
1030} 1030}
1031 1031
1032/*
1033 * We can ignore refcounting on the connection struct, as all references
1034 * will come from the messenger workqueue, which is drained prior to
1035 * mon_client destruction.
1036 */
1037static struct ceph_connection *con_get(struct ceph_connection *con)
1038{
1039 return con;
1040}
1041
1042static void con_put(struct ceph_connection *con)
1043{
1044}
1045
1032static const struct ceph_connection_operations mon_con_ops = { 1046static const struct ceph_connection_operations mon_con_ops = {
1033 .get = ceph_con_get, 1047 .get = con_get,
1034 .put = ceph_con_put, 1048 .put = con_put,
1035 .dispatch = dispatch, 1049 .dispatch = dispatch,
1036 .fault = mon_fault, 1050 .fault = mon_fault,
1037 .alloc_msg = mon_alloc_msg, 1051 .alloc_msg = mon_alloc_msg,