]> 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, 31 May 2022 14:45:21 +0000 (10:45 -0400)
commitf17274fc0f6d390f3f61dccc8efac99da0e8010b
tree81befec1f29745a31b1f065bc64ecb11bc5634ac
parentdbe967caf4c3e2f9e9bfef2a636c5a969430404d
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