svcrdma: Clean up Read chunk path
authorChuck Lever <chuck.lever@oracle.com>
Fri, 27 Jul 2018 15:18:59 +0000 (11:18 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 9 Aug 2018 20:11:21 +0000 (16:11 -0400)
commit07d0ff3b0cd23a4ba7078fb5cc3aeb25e38b3557
tree6483a8c326d94866bd208adf3797d341507f5c18
parenta53d5cb0646a12586ae45c892c7a411d47ee1a1d
svcrdma: Clean up Read chunk path

Simplify the error handling at the tail of recv_read_chunk() by
re-arranging rq_pages[] housekeeping and documenting it properly.

NB: In this path, svc_rdma_recvfrom returns zero. Therefore no
subsequent reply processing is done on the svc_rqstp, and thus the
rq_respages field does not need to be updated.

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