linux-stable/net/sunrpc/xprtrdma
Chuck Lever 2dd4a012d9 xprtrdma: Move creation of rl_rdmabuf to rpcrdma_create_req
Refactor: Both rpcrdma_create_req call sites have to allocate the
buffer where the transport header is built, so just move that
allocation into rpcrdma_create_req.

This buffer is a fixed size. There's no needed information available
in call_allocate that is not also available when the transport is
created.

The original purpose for allocating these buffers on demand was to
reduce the possibility that an allocation failure during transport
creation will hork the mount operation during low memory scenarios.
Some relief for this rare possibility is coming up in the next few
patches.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2018-04-10 16:06:22 -04:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
backchannel.c xprtrdma: Move creation of rl_rdmabuf to rpcrdma_create_req 2018-04-10 16:06:22 -04:00
fmr_ops.c xprtrdma: Chain Send to FastReg WRs 2018-04-10 16:06:22 -04:00
frwr_ops.c xprtrdma: Chain Send to FastReg WRs 2018-04-10 16:06:22 -04:00
module.c rpcrdma: infrastructure for static trace points in rpcrdma.ko 2018-01-23 09:44:25 -05:00
rpc_rdma.c xprtrdma: ->send_request returns -EAGAIN when there are no free MRs 2018-04-10 16:06:22 -04:00
svc_rdma.c svcrdma: Reduce size of sge array in struct svc_rdma_op_ctxt 2017-04-25 17:25:55 -04:00
svc_rdma_backchannel.c svcrdma: Post Receives in the Receive completion handler 2018-01-18 11:52:51 -05:00
svc_rdma_recvfrom.c svcrdma: Post Receives in the Receive completion handler 2018-01-18 11:52:51 -05:00
svc_rdma_rw.c svcrdma: Fix Read chunk round-up 2018-02-08 13:40:17 -05:00
svc_rdma_sendto.c svcrdma: Post Receives in the Receive completion handler 2018-01-18 11:52:51 -05:00
svc_rdma_transport.c svcrdma: Post Receives in the Receive completion handler 2018-01-18 11:52:51 -05:00
transport.c xprtrdma: Move creation of rl_rdmabuf to rpcrdma_create_req 2018-04-10 16:06:22 -04:00
verbs.c xprtrdma: Move creation of rl_rdmabuf to rpcrdma_create_req 2018-04-10 16:06:22 -04:00
xprt_rdma.h xprtrdma: Chain Send to FastReg WRs 2018-04-10 16:06:22 -04:00