]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: add sparse read support to msgr1
authorJeff Layton <jlayton@kernel.org>
Thu, 24 Mar 2022 17:33:06 +0000 (13:33 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 15 Aug 2022 12:51:41 +0000 (14:51 +0200)
commit7d3c9288bf3dbdc8096afa1747907e04036f9c8f
tree23c71478497f3eb7a34b83a3fad4dbab4ccc8296
parent5187cd7da37b5e0d89996d23781c5283fb5b9e54
libceph: add sparse read support to msgr1

Add 2 new fields to ceph_connection_v1_info to track the necessary info
in sparse reads. Skip initializing the cursor for a sparse read.

Break out read_partial_message_section into a wrapper around a new
read_partial_message_chunk function that doesn't zero out the crc first.

Add new helper functions to drive receiving into the destinations
provided by the sparse_read state machine.

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
include/linux/ceph/messenger.h
net/ceph/messenger_v1.c