]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaccc78c0087ee39c8e8b6c475f501ab01c046b67
tree6483a8c326d94866bd208adf3797d341507f5c18
parent7196fd0a58a96e4e70573825ac7e7754b536022a
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