svcrdma: Prevent page release when nothing was received
authorChuck Lever <chuck.lever@oracle.com>
Mon, 12 Jun 2023 14:10:20 +0000 (10:10 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 17 Jun 2023 17:18:04 +0000 (13:18 -0400)
commitbaf6d18b116b7dc84ed5e212c3a89f17cdc3f28c
treea480bb6b73d8694eb06549405b1b86a57c3cbd22
parentc4b50cdf9d9d7962d58ece5efba865f56ec40398
svcrdma: Prevent page release when nothing was received

I noticed that svc_rqst_release_pages() was still unnecessarily
releasing a page when svc_rdma_recvfrom() returns zero.

Fixes: a53d5cb0646a ("svcrdma: Avoid releasing a page in svc_xprt_release()")
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c