linux_dsm_epyc7002/net/sunrpc/xprtrdma
Chuck Lever 40088f0e9b xprtrdma: Add mechanism to place MRs back on the free list
When a marshal operation fails, any MRs that were already set up for
that request are recycled. Recycling releases MRs and creates new
ones, which is expensive.

Since commit f287762308 ("xprtrdma: Chain Send to FastReg WRs")
was merged, recycling FRWRs is unnecessary. This is because before
that commit, frwr_map had already posted FAST_REG Work Requests,
so ownership of the MRs had already been passed to the NIC and thus
dealing with them had to be delayed until they completed.

Since that commit, however, FAST_REG WRs are posted at the same time
as the Send WR. This means that if marshaling fails, we are certain
the MRs are safe to simply unmap and place back on the free list
because neither the Send nor the FAST_REG WRs have been posted yet.
The kernel still has ownership of the MRs at this point.

This reduces the total number of MRs that the xprt has to create
under heavy workloads and makes the marshaling logic less brittle.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2019-07-09 10:30:25 -04:00
..
backchannel.c xprtrdma: Aggregate the inline settings in struct rpcrdma_ep 2019-04-25 15:39:16 -04:00
frwr_ops.c xprtrdma: Add mechanism to place MRs back on the free list 2019-07-09 10:30:25 -04:00
Makefile xprtrdma: Remove support for FMR memory registration 2019-01-02 12:05:17 -05:00
module.c NFS client updates for Linux 4.18 2018-06-12 10:09:03 -07:00
rpc_rdma.c xprtrdma: Add mechanism to place MRs back on the free list 2019-07-09 10:30:25 -04:00
svc_rdma_backchannel.c SUNRPC: Refactor xprt_request_wait_receive() 2019-04-25 14:18:12 -04:00
svc_rdma_recvfrom.c svcrdma: Remove syslog warnings in work completion handlers 2019-02-06 15:37:15 -05:00
svc_rdma_rw.c svcrdma: Remove syslog warnings in work completion handlers 2019-02-06 15:37:15 -05:00
svc_rdma_sendto.c svcrdma: Remove syslog warnings in work completion handlers 2019-02-06 15:37:15 -05:00
svc_rdma_transport.c svcrdma: Remove syslog warnings in work completion handlers 2019-02-06 15:37:15 -05:00
svc_rdma.c sunrpc: remove svc_rdma_bc_class 2018-12-27 21:01:41 -05:00
transport.c xprtrdma: Remove the RPCRDMA_REQ_F_PENDING flag 2019-07-09 10:30:20 -04:00
verbs.c xprtrdma: Fix occasional transport deadlock 2019-07-09 10:30:16 -04:00
xprt_rdma.h xprtrdma: Add mechanism to place MRs back on the free list 2019-07-09 10:30:25 -04:00