]> 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)
commita291fe0d72e2d8d4688186fd58cbb448604ba141
treeefc932c1ce870d5b58b59bc6066e1f1385777aff
parent5010c24a8b2e1106cdcc8c3125e0127e12e9ab6c
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: f2e2f5185aea ("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