SUNRPC: Revert cc93ce9529a6 ("svcrdma: Retain the page backing rq_res.head[0].iov_base")
authorChuck Lever <chuck.lever@oracle.com>
Mon, 12 Jun 2023 14:10:01 +0000 (10:10 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 12 Jun 2023 16:16:35 +0000 (12:16 -0400)
Pre-requisite for releasing pages in the send completion handler.
Reverted by hand: patch -R would not apply cleanly.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/svc_rdma_sendto.c

index a35d1e055b1ad78bf7759b9c933e8373498d3698..8e7ccef74207a22953a08e8a784d840a05a9865d 100644 (file)
@@ -975,11 +975,6 @@ int svc_rdma_sendto(struct svc_rqst *rqstp)
        ret = svc_rdma_send_reply_msg(rdma, sctxt, rctxt, rqstp);
        if (ret < 0)
                goto put_ctxt;
-
-       /* Prevent svc_xprt_release() from releasing the page backing
-        * rq_res.head[0].iov_base. It's no longer being accessed by
-        * the I/O device. */
-       rqstp->rq_respages++;
        return 0;
 
 reply_chunk: