libceph: store ceph_auth_handshake pointer in ceph_connection
authorIlya Dryomov <idryomov@gmail.com>
Thu, 26 Jul 2018 13:17:46 +0000 (15:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 18:41:09 +0000 (19:41 +0100)
commit2fd0d0f9bb59ec5b628622e30f22158cb564c4ea
tree3d18c89079d8e02090eaabc7bf689fdb65c1c8b1
parentba9606d0121b644019d0699b5973926cc1a91c10
libceph: store ceph_auth_handshake pointer in ceph_connection

commit 262614c4294d33b1f19e0d18c0091d9c329b544a upstream.

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>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/ceph/messenger.h
net/ceph/messenger.c