svcrdma: svc_rdma_put_context() is invoked twice in Send error path
authorChuck Lever <chuck.lever@oracle.com>
Wed, 4 May 2016 14:53:05 +0000 (10:53 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 13 May 2016 19:53:05 +0000 (15:53 -0400)
commit9ec64052060f972101b49f47631f5072f075426c
treede3b068b304535de86b20e7eb495e1e23b00b51c
parent6625d0913771df5f12b9531c8cb8414e55f1c21d
svcrdma: svc_rdma_put_context() is invoked twice in Send error path

Get a fresh op_ctxt in send_reply() instead of in svc_rdma_sendto().
This ensures that svc_rdma_put_context() is invoked only once if
send_reply() fails.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_sendto.c