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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:34:09 +0000 (09:34 +0200)
commitb158bdd71ef550981bdac7a9bf63cd4f163f3bb8
tree15a70fd1ffba39bff3b39fde3446be9669f83f3c
parent9e2e58d1d360947ff8b4f772a16ad32cb3c0589b
xprtrdma: Fix return code from rpcrdma_xprt_connect()

[ Upstream commit dda9a951dd6dd6073bbaf2c8d3119da2f8fe2d5b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/xprtrdma/verbs.c