svcrdma: Post Receives only for forward channel requests
authorChuck Lever <chuck.lever@oracle.com>
Wed, 4 May 2016 14:53:22 +0000 (10:53 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 13 May 2016 19:53:06 +0000 (15:53 -0400)
commit0319aafc95eaae10fdb867c35ce9bacfca27eaa3
tree6d52f409c44c765ac0e6aaf21016c401698a7e17
parentcac7f15036dc69c8708fa73369a9fae193e82bfb
svcrdma: Post Receives only for forward channel requests

Since backward direction support was added, the rq_depth was
increased to accommodate both forward and backward Receives.

But only forward Receives need to be posted after a connection
has been accepted. Receives for backward replies are posted as
needed by svc_rdma_bc_sendto().

This doesn't break anything, but it means some resources are
wasted.

Fixes: 03fe9931536f ('svcrdma: Define maximum number of ...')
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_transport.c