diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2018-07-26 15:17:46 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-08-02 21:33:22 +0200 |
commit | 262614c4294d33b1f19e0d18c0091d9c329b544a (patch) | |
tree | 8ab80908076eb68f3996d1be19a9691ea8a82e0f /include/linux/ceph | |
parent | 24e1dd6afde9e9cca405df8ca98be59419ea7229 (diff) | |
download | linux-stable-262614c4294d33b1f19e0d18c0091d9c329b544a.tar.gz linux-stable-262614c4294d33b1f19e0d18c0091d9c329b544a.tar.bz2 linux-stable-262614c4294d33b1f19e0d18c0091d9c329b544a.zip |
libceph: store ceph_auth_handshake pointer in ceph_connection
We already copy authorizer_reply_buf and authorizer_reply_buf_len into
ceph_connection. Factoring out __prepare_write_connect() requires two
more: authorizer_buf and authorizer_buf_len. Store the pointer to the
handshake in con->auth rather than piling on.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r-- | include/linux/ceph/messenger.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index a718b877c597..021718570b50 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h @@ -286,9 +286,8 @@ struct ceph_connection { attempt for this connection, client */ u32 peer_global_seq; /* peer's global seq for this connection */ + struct ceph_auth_handshake *auth; int auth_retry; /* true if we need a newer authorizer */ - void *auth_reply_buf; /* where to put the authorizer reply */ - int auth_reply_buf_len; struct mutex mutex; |