]> asedeno.scripts.mit.edu Git - linux.git/commit
xprtrdma: Connection becomes unstable after a reconnect
authorChuck Lever <chuck.lever@oracle.com>
Wed, 9 Oct 2019 17:07:27 +0000 (13:07 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 24 Oct 2019 14:30:39 +0000 (10:30 -0400)
commita31b2f939219dd9bffdf01a45bd91f209f8cc369
treee85586f2409e3f6715d9d6ccbcaaaea11e6fe3f6
parent4b93dab36f28e673725e5e6123ebfccf7697f96a
xprtrdma: Connection becomes unstable after a reconnect

This is because xprt_request_get_cong() is allowing more than one
RPC Call to be transmitted before the first Receive on the new
connection. The first Receive fills the Receive Queue based on the
server's credit grant. Before that Receive, there is only a single
Receive WR posted because the client doesn't know the server's
credit grant.

Solution is to clear rq_cong on all outstanding rpc_rqsts when the
the cwnd is reset. This is because an RPC/RDMA credit is good for
one connection instance only.

Fixes: 75891f502f5f ("SUNRPC: Support for congestion control ... ")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtrdma/verbs.c