]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
xprtrdma: Use smaller buffers for RPC-over-RDMA headers
authorChuck Lever <chuck.lever@oracle.com>
Thu, 15 Sep 2016 14:56:02 +0000 (10:56 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 19 Sep 2016 17:08:37 +0000 (13:08 -0400)
commit08cf2efd5423121985af5962d66e6db14dff4130
tree3a2910042e5fecbf4dfc335d396e9069a6ae505b
parent9c40c49f145f8999ecbf81683aeb31d92b61b966
xprtrdma: Use smaller buffers for RPC-over-RDMA headers

Commit 949317464bc2 ("xprtrdma: Limit number of RDMA segments in
RPC-over-RDMA headers") capped the number of chunks that may appear
in RPC-over-RDMA headers. The maximum header size can be estimated
and fixed to avoid allocating buffer space that is never used.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/backchannel.c
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtrdma/xprt_rdma.h