diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-12-04 09:57:35 -0500 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-01-07 17:54:30 -0500 |
commit | fc20f19b4df4a46d1003d15d84148a117e8bdf5d (patch) | |
tree | 087155f29d4b47a8527e7df77bf90bb812f8941f /include/linux/sunrpc | |
parent | 919f6e790ab6cca772fa60c6006162c0a7ebbfc5 (diff) | |
download | linux-stable-fc20f19b4df4a46d1003d15d84148a117e8bdf5d.tar.gz linux-stable-fc20f19b4df4a46d1003d15d84148a117e8bdf5d.tar.bz2 linux-stable-fc20f19b4df4a46d1003d15d84148a117e8bdf5d.zip |
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>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/svc_rdma.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h index 44a14eaf8c40..f03f9909fb97 100644 --- a/include/linux/sunrpc/svc_rdma.h +++ b/include/linux/sunrpc/svc_rdma.h @@ -116,6 +116,13 @@ struct svcxprt_rdma { /* sc_flags */ #define RDMAXPRT_CONN_PENDING 3 +static inline struct svcxprt_rdma *svc_rdma_rqst_rdma(struct svc_rqst *rqstp) +{ + struct svc_xprt *xprt = rqstp->rq_xprt; + + return container_of(xprt, struct svcxprt_rdma, sc_xprt); +} + /* * Default connection parameters */ |