]> git.baikalelectronics.ru Git - kernel.git/commit
svcrdma: Add recvfrom helpers to svc_rdma_rw.c
authorChuck Lever <chuck.lever@oracle.com>
Fri, 23 Jun 2017 21:18:24 +0000 (17:18 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 12 Jul 2017 19:54:56 +0000 (15:54 -0400)
commit67b17d1c20fb965a20fe0844361f8433a191bee1
treeb552e8b445f5bb2df30317682c21ac7e09bc4781
parent3211e65fcf85c558c4a23d0ded268401d304e475
svcrdma: Add recvfrom helpers to svc_rdma_rw.c

svc_rdma_rw.c already contains helpers for the sendto path.
Introduce helpers for the recvfrom path.

The plan is to replace the local NFSD bespoke code that constructs
and posts RDMA Read Work Requests with calls to the rdma_rw API.
This shares code with other RDMA-enabled ULPs that manages the gory
details of buffer registration and posting Work Requests.

This new code also puts all RDMA_NOMSG-specific logic in one place.

Lastly, the use of rqstp->rq_arg.pages is deprecated in favor of
using rqstp->rq_pages directly, for clarity.

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