summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
diff options
context:
space:
mode:
authorChuck Lever2016-05-04 16:53:47 +0200
committerJ. Bruce Fields2016-05-13 21:53:06 +0200
commitd9e4084f6c9746e51a78a4d7ebf4983023289b32 (patch)
tree3ed63cefa263b7fcd983e2f00d63b2ca83354bc0 /net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
parentsvcrdma: Eliminate code duplication in svc_rdma_recvfrom() (diff)
downloadkernel-qcow2-linux-d9e4084f6c9746e51a78a4d7ebf4983023289b32.tar.gz
kernel-qcow2-linux-d9e4084f6c9746e51a78a4d7ebf4983023289b32.tar.xz
kernel-qcow2-linux-d9e4084f6c9746e51a78a4d7ebf4983023289b32.zip
svcrdma: Generalize svc_rdma_xdr_decode_req()
Clean up: Pass in just the piece of the svc_rqst that is needed here. While we're in the area, add an informative documenting comment. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/svc_rdma_recvfrom.c')
-rw-r--r--net/sunrpc/xprtrdma/svc_rdma_recvfrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
index 1b72f351fbd3..c984b0aaecb1 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
@@ -636,7 +636,7 @@ int svc_rdma_recvfrom(struct svc_rqst *rqstp)
/* Decode the RDMA header. */
rmsgp = (struct rpcrdma_msg *)rqstp->rq_arg.head[0].iov_base;
- ret = svc_rdma_xdr_decode_req(rmsgp, rqstp);
+ ret = svc_rdma_xdr_decode_req(&rqstp->rq_arg);
if (ret < 0)
goto out_err;
if (ret == 0)