]> git.baikalelectronics.ru Git - 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)
commit70c091e4c1fa4bedc04c6715592fd7e72c974a16
treeefc932c1ce870d5b58b59bc6066e1f1385777aff
parent71693130e9a115641b5818a039ba7b092985d52f
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: dd4ac784dd54 ("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