xprtrdma: Fix return code from rpcrdma_xprt_connect()
authorChuck Lever <chuck.lever@oracle.com>
Sat, 27 Jun 2020 16:35:15 +0000 (12:35 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 13 Jul 2020 14:50:41 +0000 (10:50 -0400)
commitdda9a951dd6dd6073bbaf2c8d3119da2f8fe2d5b
treef1ea37ce95f1630a5bd7153d1ad37477b6b2f167
parent4cf44be6f1e86da302085bf3e1dc2c86f3cdaaaa
xprtrdma: Fix return code from rpcrdma_xprt_connect()

I noticed that when rpcrdma_xprt_connect() returns -ENOMEM,
instead of retrying the connect, the RPC client kills the
RPC task that requested the connection. We want a retry
here.

Fixes: cb586decbb88 ("xprtrdma: Make sendctx queue lifetime the same as connection lifetime")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c