Merge tag 'nfsd-4.19-1' of git://linux-nfs.org/~bfields/linux
[platform/kernel/linux-starfive.git] / net / sunrpc / xprtrdma / svc_rdma_sendto.c
index ffef0c5..8602a5f 100644 (file)
@@ -656,7 +656,9 @@ static void svc_rdma_save_io_pages(struct svc_rqst *rqstp,
                ctxt->sc_pages[i] = rqstp->rq_respages[i];
                rqstp->rq_respages[i] = NULL;
        }
-       rqstp->rq_next_page = rqstp->rq_respages + 1;
+
+       /* Prevent svc_xprt_release from releasing pages in rq_pages */
+       rqstp->rq_next_page = rqstp->rq_respages;
 }
 
 /* Prepare the portion of the RPC Reply that will be transmitted