svcrdma: Start moving fields out of struct svc_rdma_read_info
authorChuck Lever <chuck.lever@oracle.com>
Mon, 4 Dec 2023 14:57:16 +0000 (09:57 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 7 Jan 2024 22:54:29 +0000 (17:54 -0500)
commitb1818412d06fc03605d02dbdd4a7c53dc9e2d5ba
tree0759fd7b9f35081c1496c245512c6a6d1722f15d
parent6a04a4349330c5476adf465159a7f49411091bbe
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>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma_rw.c