svcrdma: Fix page leak in svc_rdma_recv_read_chunk()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 11 Jun 2020 16:44:56 +0000 (12:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:24:09 +0000 (08:24 +0200)
commit196dae5b82d136986fadf669a66d64eaf29f9a2a
treef2a37fe8a3135e4a4ba9f872bdb803732c72f68f
parent4c66f7c0c67b28ff3d49d443c7bae9581b059dab
svcrdma: Fix page leak in svc_rdma_recv_read_chunk()

[ Upstream commit e814eecbe3bbeaa8b004d25a4b8974d232b765a9 ]

Commit 07d0ff3b0cd2 ("svcrdma: Clean up Read chunk path") moved the
page saver logic so that it gets executed event when an error occurs.
In that case, the I/O is never posted, and those pages are then
leaked. Errors in this path, however, are quite rare.

Fixes: 07d0ff3b0cd2 ("svcrdma: Clean up Read chunk path")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/xprtrdma/svc_rdma_rw.c