linux/net/sunrpc/xprtrdma
Chuck Lever ad99f05307 xprtrdma: Clean up SGE accounting in rpcrdma_prepare_msg_sges()
Clean up. rpcrdma_prepare_hdr_sge() sets num_sge to one, then
rpcrdma_prepare_msg_sges() sets num_sge again to the count of SGEs
it added, plus one for the header SGE just mapped in
rpcrdma_prepare_hdr_sge(). This is confusing, and nails in an
assumption about when these functions are called.

Instead, maintain a running count that both functions can update
with just the number of SGEs they have added to the SGE array.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2017-11-17 13:47:55 -05:00
..
backchannel.c xprtrdma: Clean up rpcrdma_bc_marshal_reply() 2017-08-11 13:20:08 -04:00
fmr_ops.c xprtrdma: Remove ro_unmap_safe 2017-10-16 13:51:27 -04:00
frwr_ops.c xprtrdma: Remove ro_unmap_safe 2017-10-16 13:51:27 -04:00
Makefile svcrdma: Remove svc_rdma_marshal.c 2017-06-28 14:21:43 -04:00
module.c rpcrdma: Merge svcrdma and xprtrdma modules into one 2015-06-04 16:56:02 -04:00
rpc_rdma.c xprtrdma: Clean up SGE accounting in rpcrdma_prepare_msg_sges() 2017-11-17 13:47:55 -05: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 NFS-over-RDMA client updates for Linux 4.14 2017-09-05 15:16:04 -04:00
svc_rdma_recvfrom.c svcrdma: Properly compute .len and .buflen for received RPC Calls 2017-07-12 15:54:57 -04:00
svc_rdma_rw.c svcrdma: Populate tail iovec when receiving 2017-09-05 15:15:29 -04:00
svc_rdma_sendto.c svcrdma: fix an incorrect check on -E2BIG and -EINVAL 2017-07-13 14:18:47 -04:00
svc_rdma_transport.c svcrdma: Estimate Send Queue depth properly 2017-09-05 15:15:31 -04:00
transport.c xprtrdma: Use ro_unmap_sync in xprt_rdma_send_request 2017-10-16 13:51:27 -04:00
verbs.c xprtrdma: Decode credits field in rpcrdma_reply_handler 2017-11-17 13:47:55 -05:00
xprt_rdma.h xprtrdma: Decode credits field in rpcrdma_reply_handler 2017-11-17 13:47:55 -05:00