xprtrdma: Recycle MRs after disconnect
authorChuck Lever <chuck.lever@oracle.com>
Mon, 26 Aug 2019 17:12:46 +0000 (13:12 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 26 Aug 2019 19:22:31 +0000 (15:22 -0400)
commitee2f412ece32ab685921408ab1242d097557b57c
tree3b56bb22f7309f147cd1858279b62a3799e5b6aa
parentf836b27ecad98770bc53600d1ebd6533c921a4e7
xprtrdma: Recycle MRs after disconnect

The optimization done in "xprtrdma: Simplify rpcrdma_mr_pop" was a
bit too optimistic. MRs left over after a reconnect still need to
be recycled, not added back to the free list, since they could be
in flight or actually fully registered.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/frwr_ops.c
net/sunrpc/xprtrdma/rpc_rdma.c
net/sunrpc/xprtrdma/xprt_rdma.h