]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
xprtrdma: Fix handling of connect errors
authorChuck Lever <chuck.lever@oracle.com>
Sat, 27 Jun 2020 16:35:20 +0000 (12:35 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 13 Jul 2020 14:50:41 +0000 (10:50 -0400)
commitaf667527b0e34912d2cb3586d585f66db4e4f486
treeefc932c1ce870d5b58b59bc6066e1f1385777aff
parentdda9a951dd6dd6073bbaf2c8d3119da2f8fe2d5b
xprtrdma: Fix handling of connect errors

Ensure that the connect worker is awoken if an attempt to establish
a connection is unsuccessful. Otherwise the worker waits forever
and the transport workload hangs.

Connect errors should not attempt to destroy the ep, since the
connect worker continues to use it after the handler runs, so these
errors are now handled independently of DISCONNECTED events.

Reported-by: Dan Aloni <dan@kernelim.com>
Fixes: e28ce90083f0 ("xprtrdma: kmalloc rpcrdma_ep separate from rpcrdma_xprt")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c