svcrdma: Simplify receive buffer posting
authorTom Tucker <tom@opengridcomputing.com>
Wed, 23 Apr 2008 21:49:54 +0000 (16:49 -0500)
committerTom Tucker <tom@opengridcomputing.com>
Mon, 19 May 2008 12:33:43 +0000 (07:33 -0500)
commit0e7f011a19696cc25d68a8d6631fc6c5aa60a54c
tree2d87c078c835a3629cb0e053bd92911d019878b9
parentaa3314c8d6da673b3454549eed45547a79f7cbe1
svcrdma: Simplify receive buffer posting

The svcrdma transport provider currently allocates receive buffers
to the RQ through the xpo_release_rqst method. This approach is overly
complicated since it means that the rqstp rq_xprt_ctxt has to be
selectively set based on whether the RPC is going to be processed
immediately or deferred. Instead, just post the receive buffer when
we are certain that we are replying in the send_reply function.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
net/sunrpc/xprtrdma/svc_rdma_sendto.c
net/sunrpc/xprtrdma/svc_rdma_transport.c