]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
xprtrdma: Fix MR list handling
authorChuck Lever <chuck.lever@oracle.com>
Wed, 9 Oct 2019 17:07:43 +0000 (13:07 -0400)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:24:41 +0000 (16:24 +0100)
commita2ebcbd319baec8d33eae5ae72e30465f45c5b4b
treef6af9d954bc84d041454a58f9a2ff4b8dcecbb8c
parentf46ad5a6367429dd6349b9fa199d10d346ceef96
xprtrdma: Fix MR list handling

BugLink: https://bugs.launchpad.net/bugs/1861085
commit c3700780a096fc66467c81076ddf7f3f11d639b5 upstream.

Close some holes introduced by commit 6dc6ec9e04c4 ("xprtrdma: Cache
free MRs in each rpcrdma_req") that could result in list corruption.

In addition, the result that is tabulated in @count is no longer
used, so @count is removed.

Fixes: 6dc6ec9e04c4 ("xprtrdma: Cache free MRs in each rpcrdma_req")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/sunrpc/xprtrdma/verbs.c