svcrdma: Drain QP before freeing svcrdma_xprt
authorChuck Lever <chuck.lever@oracle.com>
Wed, 4 May 2016 14:53:30 +0000 (10:53 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 13 May 2016 19:53:06 +0000 (15:53 -0400)
commit76ee8fd64ac9af36b03b68912c18b3d3cd5c99de
tree0e386437be480287bb80694350b596dbc7f8e317
parent0319aafc95eaae10fdb867c35ce9bacfca27eaa3
svcrdma: Drain QP before freeing svcrdma_xprt

If the server has forced a disconnect, the associated QP has not
been moved to the Error state, and thus Receives are still posted.

Ensure Receives (and any other outstanding WRs) are drained to
release resources that can be freed during teardown of the
svcrdma_xprt.

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