diff options
author | Jeff Layton <jlayton@kernel.org> | 2022-08-25 09:31:16 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2023-08-24 11:24:35 +0200 |
commit | 4e8c4c235578b4d44bd6676df3a01dce98d0f7dd (patch) | |
tree | de827db05de7a99c6b7f0380e281238d9eceb4e1 /fs/ceph/super.h | |
parent | 69dd3b3930f96b624228000921f417fb0919a6ab (diff) | |
download | lwn-4e8c4c235578b4d44bd6676df3a01dce98d0f7dd.tar.gz lwn-4e8c4c235578b4d44bd6676df3a01dce98d0f7dd.zip |
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.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-and-tested-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/super.h')
0 files changed, 0 insertions, 0 deletions