]> git.apps.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)
committerJeff Layton <jlayton@kernel.org>
Tue, 26 Apr 2022 12:54:04 +0000 (08:54 -0400)
commit26b8b8c02b577c63974a6d06b943969ca2e81630
treeafd139a7d5a9126e4844bf49a77bfe970664f309
parentb3d9f94255866d0bd0b8df3be9fc5bad91503d12
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.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
include/linux/ceph/messenger.h
net/ceph/messenger_v1.c