svcrdma: svc_rdma_post_recv() should close connection on error
authorChuck Lever <chuck.lever@oracle.com>
Tue, 1 Mar 2016 18:06:20 +0000 (13:06 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 1 Mar 2016 21:06:37 +0000 (13:06 -0800)
commitbf36387ad394ad4fc93ad85fdd4a95dfa583556a
treeb4c3ac4aee7be16136f8ed065ff0a8e8e1105db6
parent3e1eeb9808225fb050582a1fc9b5d8e00390581c
svcrdma: svc_rdma_post_recv() should close connection on error

Clean up: Most svc_rdma_post_recv() call sites close the transport
connection when a receive cannot be posted. Wrap that in a common
helper.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Devesh Sharma <devesh.sharma@broadcom.com>
Tested-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma_backchannel.c
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
net/sunrpc/xprtrdma/svc_rdma_sendto.c
net/sunrpc/xprtrdma/svc_rdma_transport.c