Skip to content

Commit 88770b8

Browse files
committed
svcrdma: Fix stale comment
Commit 7d81ee8 ("svcrdma: Single-stage RDMA Read") changed the behavior of svc_rdma_recvfrom() but neglected to update the documenting comment. Signed-off-by: Chuck Lever <[email protected]>
1 parent 5e092be commit 88770b8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

net/sunrpc/xprtrdma/svc_rdma_recvfrom.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,6 @@ static bool svc_rdma_is_reverse_direction_reply(struct svc_xprt *xprt,
771771
*
772772
* The next ctxt is removed from the "receive" lists.
773773
*
774-
* - If the ctxt completes a Read, then finish assembling the Call
775-
* message and return the number of bytes in the message.
776-
*
777774
* - If the ctxt completes a Receive, then construct the Call
778775
* message from the contents of the Receive buffer.
779776
*
@@ -782,7 +779,8 @@ static bool svc_rdma_is_reverse_direction_reply(struct svc_xprt *xprt,
782779
* in the message.
783780
*
784781
* - If there are Read chunks in this message, post Read WRs to
785-
* pull that payload and return 0.
782+
* pull that payload. When the Read WRs complete, build the
783+
* full message and return the number of bytes in it.
786784
*/
787785
int svc_rdma_recvfrom(struct svc_rqst *rqstp)
788786
{

0 commit comments

Comments
 (0)