diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-12-04 09:57:16 -0500 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-01-07 17:54:29 -0500 |
commit | b1818412d06fc03605d02dbdd4a7c53dc9e2d5ba (patch) | |
tree | 0759fd7b9f35081c1496c245512c6a6d1722f15d /include | |
parent | 6a04a4349330c5476adf465159a7f49411091bbe (diff) | |
download | linux-stable-b1818412d06fc03605d02dbdd4a7c53dc9e2d5ba.tar.gz linux-stable-b1818412d06fc03605d02dbdd4a7c53dc9e2d5ba.tar.bz2 linux-stable-b1818412d06fc03605d02dbdd4a7c53dc9e2d5ba.zip |
svcrdma: Start moving fields out of struct svc_rdma_read_info
Since the request's svc_rdma_recv_ctxt will stay around for the
duration of the RDMA Read operation, the contents of struct
svc_rdma_read_info can reside in the request's svc_rdma_recv_ctxt
rather than being allocated separately. This will eventually save a
call to kmalloc() in a hot path.
Start this clean-up by moving the Read chunk's svc_rdma_chunk_ctxt.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/svc_rdma.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h index 50c4f18a9b7f..6c7501ae4e29 100644 --- a/include/linux/sunrpc/svc_rdma.h +++ b/include/linux/sunrpc/svc_rdma.h @@ -156,6 +156,10 @@ struct svc_rdma_recv_ctxt { u32 rc_inv_rkey; __be32 rc_msgtype; + /* State for pulling a Read chunk */ + unsigned int rc_readbytes; + struct svc_rdma_chunk_ctxt rc_cc; + struct svc_rdma_pcl rc_call_pcl; struct svc_rdma_pcl rc_read_pcl; |