libceph: change ceph_con_in_msg_alloc() to take hdr
authorIlya Dryomov <idryomov@gmail.com>
Mon, 16 Nov 2020 16:27:50 +0000 (17:27 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 14 Dec 2020 22:21:49 +0000 (23:21 +0100)
commitfc4c128e15b50c73466dcd7234dde02f6fd9e4f8
tree1d9ffce8632210487dc7d1da519ecaab4e6fc936
parent8ee8abf797bb3cb6007e30ac17a15f93277b0e91
libceph: change ceph_con_in_msg_alloc() to take hdr

ceph_con_in_msg_alloc() is protocol independent, but con->in_hdr (and
struct ceph_msg_header in general) is msgr1 specific.  While the struct
is deeply ingrained inside and outside the messenger, con->in_hdr field
can be separated.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/messenger.c