diff options
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/xprtrdma/svc_rdma_sendto.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_sendto.c b/net/sunrpc/xprtrdma/svc_rdma_sendto.c index 7d79897959a4..7de33d1af9b6 100644 --- a/net/sunrpc/xprtrdma/svc_rdma_sendto.c +++ b/net/sunrpc/xprtrdma/svc_rdma_sendto.c | |||
@@ -483,18 +483,6 @@ void svc_rdma_prep_reply_hdr(struct svc_rqst *rqstp) | |||
483 | { | 483 | { |
484 | } | 484 | } |
485 | 485 | ||
486 | /* | ||
487 | * Return the start of an xdr buffer. | ||
488 | */ | ||
489 | static void *xdr_start(struct xdr_buf *xdr) | ||
490 | { | ||
491 | return xdr->head[0].iov_base - | ||
492 | (xdr->len - | ||
493 | xdr->page_len - | ||
494 | xdr->tail[0].iov_len - | ||
495 | xdr->head[0].iov_len); | ||
496 | } | ||
497 | |||
498 | int svc_rdma_sendto(struct svc_rqst *rqstp) | 486 | int svc_rdma_sendto(struct svc_rqst *rqstp) |
499 | { | 487 | { |
500 | struct svc_xprt *xprt = rqstp->rq_xprt; | 488 | struct svc_xprt *xprt = rqstp->rq_xprt; |
@@ -512,8 +500,10 @@ int svc_rdma_sendto(struct svc_rqst *rqstp) | |||
512 | 500 | ||
513 | dprintk("svcrdma: sending response for rqstp=%p\n", rqstp); | 501 | dprintk("svcrdma: sending response for rqstp=%p\n", rqstp); |
514 | 502 | ||
515 | /* Get the RDMA request header. */ | 503 | /* Get the RDMA request header. The receive logic always |
516 | rdma_argp = xdr_start(&rqstp->rq_arg); | 504 | * places this at the start of page 0. |
505 | */ | ||
506 | rdma_argp = page_address(rqstp->rq_pages[0]); | ||
517 | 507 | ||
518 | /* Build an req vec for the XDR */ | 508 | /* Build an req vec for the XDR */ |
519 | ctxt = svc_rdma_get_context(rdma); | 509 | ctxt = svc_rdma_get_context(rdma); |