xprtrdma: Fix MR list handling
authorChuck Lever <chuck.lever@oracle.com>
Wed, 9 Oct 2019 17:07:43 +0000 (13:07 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 18:48:38 +0000 (19:48 +0100)
commitf69a06529dcb6cf0a1af8646fcf1d78fa363ecf8
treec5738685cfbef20978253811bec555d65728cf14
parentb2b36f91af22955cccbdc04a3bd3f59a8aeb8e0d
xprtrdma: Fix MR list handling

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>
net/sunrpc/xprtrdma/verbs.c