]> git.ipfire.org Git - thirdparty/linux.git/commit
svcrdma: Reduce size of struct svc_rdma_rw_ctxt
authorChuck Lever <chuck.lever@oracle.com>
Mon, 4 Dec 2023 14:56:24 +0000 (09:56 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 7 Jan 2024 22:54:28 +0000 (17:54 -0500)
commit5ef6c666764151095346c18966b8720146a33719
treefcb76c50c4a7bb6925206ccdb2293c8a17ecfa08
parent2dd6e29a3ea86ce51404589fd99597cd4dd0cd41
svcrdma: Reduce size of struct svc_rdma_rw_ctxt

SG_CHUNK_SIZE is 128, making struct svc_rdma_rw_ctxt + the first
SGL array more than 4200 bytes in length, pushing the memory
allocation well into order 1.

Even so, the RDMA rw core doesn't seem to use more than max_send_sge
entries in that array (typically 32 or less), so that is all wasted
space.

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