diff options
Diffstat (limited to 'net/ceph/mon_client.c')
-rw-r--r-- | net/ceph/mon_client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ceph/mon_client.c b/net/ceph/mon_client.c index 1fe25cd29d0e..2ac9ef35110b 100644 --- a/net/ceph/mon_client.c +++ b/net/ceph/mon_client.c | |||
@@ -152,7 +152,7 @@ static int __open_session(struct ceph_mon_client *monc) | |||
152 | /* initiatiate authentication handshake */ | 152 | /* initiatiate authentication handshake */ |
153 | ret = ceph_auth_build_hello(monc->auth, | 153 | ret = ceph_auth_build_hello(monc->auth, |
154 | monc->m_auth->front.iov_base, | 154 | monc->m_auth->front.iov_base, |
155 | monc->m_auth->front_max); | 155 | monc->m_auth->front_alloc_len); |
156 | __send_prepared_auth_request(monc, ret); | 156 | __send_prepared_auth_request(monc, ret); |
157 | } else { | 157 | } else { |
158 | dout("open_session mon%d already open\n", monc->cur_mon); | 158 | dout("open_session mon%d already open\n", monc->cur_mon); |
@@ -196,7 +196,7 @@ static void __send_subscribe(struct ceph_mon_client *monc) | |||
196 | int num; | 196 | int num; |
197 | 197 | ||
198 | p = msg->front.iov_base; | 198 | p = msg->front.iov_base; |
199 | end = p + msg->front_max; | 199 | end = p + msg->front_alloc_len; |
200 | 200 | ||
201 | num = 1 + !!monc->want_next_osdmap + !!monc->want_mdsmap; | 201 | num = 1 + !!monc->want_next_osdmap + !!monc->want_mdsmap; |
202 | ceph_encode_32(&p, num); | 202 | ceph_encode_32(&p, num); |
@@ -897,7 +897,7 @@ static void handle_auth_reply(struct ceph_mon_client *monc, | |||
897 | ret = ceph_handle_auth_reply(monc->auth, msg->front.iov_base, | 897 | ret = ceph_handle_auth_reply(monc->auth, msg->front.iov_base, |
898 | msg->front.iov_len, | 898 | msg->front.iov_len, |
899 | monc->m_auth->front.iov_base, | 899 | monc->m_auth->front.iov_base, |
900 | monc->m_auth->front_max); | 900 | monc->m_auth->front_alloc_len); |
901 | if (ret < 0) { | 901 | if (ret < 0) { |
902 | monc->client->auth_err = ret; | 902 | monc->client->auth_err = ret; |
903 | wake_up_all(&monc->client->auth_wq); | 903 | wake_up_all(&monc->client->auth_wq); |
@@ -939,7 +939,7 @@ static int __validate_auth(struct ceph_mon_client *monc) | |||
939 | return 0; | 939 | return 0; |
940 | 940 | ||
941 | ret = ceph_build_auth(monc->auth, monc->m_auth->front.iov_base, | 941 | ret = ceph_build_auth(monc->auth, monc->m_auth->front.iov_base, |
942 | monc->m_auth->front_max); | 942 | monc->m_auth->front_alloc_len); |
943 | if (ret <= 0) | 943 | if (ret <= 0) |
944 | return ret; /* either an error, or no need to authenticate */ | 944 | return ret; /* either an error, or no need to authenticate */ |
945 | __send_prepared_auth_request(monc, ret); | 945 | __send_prepared_auth_request(monc, ret); |