]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: allow ceph_osdc_new_request to accept a multi-op read
authorJeff Layton <jlayton@kernel.org>
Mon, 22 Feb 2021 21:28:16 +0000 (16:28 -0500)
committerJeff Layton <jlayton@kernel.org>
Tue, 31 May 2022 15:50:01 +0000 (11:50 -0400)
commitdc015548067191568b65780775e0b194b998add4
tree735433ce3bb4874dcb6789772eeec414f465e7f6
parentd1ac815173553ab8c7e2d461c42d3313a1fc4a8e
libceph: allow ceph_osdc_new_request to accept a multi-op read

Currently we have some special-casing for multi-op writes, but in the
case of a read, we can't really handle it. All of the current multi-op
callers call it with CEPH_OSD_FLAG_WRITE set.

Have ceph_osdc_new_request check for CEPH_OSD_FLAG_READ and if it's set,
allocate multiple reply ops instead of multiple request ops. If neither
flag is set, return -EINVAL.

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