]> git.ipfire.org Git - people/arne_f/kernel.git/commit
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>
Sat, 8 Dec 2018 12:05:09 +0000 (13:05 +0100)
commit08115452f865b39c9ecbd468201f606ff5434619
tree5b5c16421c1111db1153646509fe903c216a4168
parentbd180ec81f73c3af8c6ce45a72f45a3365d493ce
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/ceph/messenger.h
net/ceph/messenger.c