svcrdma: Update synopsis of svc_rdma_build_read_segment()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 4 Dec 2023 14:57:35 +0000 (09:57 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 7 Jan 2024 22:54:30 +0000 (17:54 -0500)
commitfc20f19b4df4a46d1003d15d84148a117e8bdf5d
tree087155f29d4b47a8527e7df77bf90bb812f8941f
parent919f6e790ab6cca772fa60c6006162c0a7ebbfc5
svcrdma: Update synopsis of svc_rdma_build_read_segment()

Since the RDMA Read I/O state is now contained in the recv_ctxt,
svc_rdma_build_read_segment() can use the recv_ctxt to derive that
information rather than the other way around. This removes one usage
of the ri_readctxt field, enabling its removal in a subsequent
patch.

At the same time, the use of ri_rqst can similarly be replaced with
a passed-in function parameter.

Start with build_read_segment() because it is a common utility
function at the bottom of the Read chunk path.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma_rw.c