xprtrdma: Do not wait if ib_post_send() fails
authorChuck Lever <chuck.lever@oracle.com>
Fri, 4 Mar 2016 16:28:01 +0000 (11:28 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 14 Mar 2016 18:55:55 +0000 (14:55 -0400)
commitb892a699cecc36ca373def4bc5ddc5fa3d46ba3b
tree8f3b5c57ab41ac027b90a9d6f0bbb63b810fdd22
parent821c791a0bde997499384733fc98dba76baac41e
xprtrdma: Do not wait if ib_post_send() fails

If ib_post_send() in ro_unmap_sync() fails, the WRs have not been
posted, no completions will fire, and wait_for_completion() will
wait forever. Skip the wait in that case.

To ensure the MRs are invalid, disconnect.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/frwr_ops.c