OSDN Git Service

net/smc: abort CLC connection in smc_release
authorHans Wippel <hwippel@linux.ibm.com>
Tue, 20 Nov 2018 15:46:39 +0000 (16:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Nov 2018 00:14:56 +0000 (16:14 -0800)
commitf07920ad9c6f5781c90ac4915f8254d999d8c1cc
tree73c7617e7b78bf570c380a7041b6d1916e02b68e
parent1e2b1046b53f356e663fd145d0c57bea04a0343a
net/smc: abort CLC connection in smc_release

In case of a non-blocking SMC socket, the initial CLC handshake is
performed over a blocking TCP connection in a worker. If the SMC socket
is released, smc_release has to wait for the blocking CLC socket
operations (e.g., kernel_connect) inside the worker.

This patch aborts a CLC connection when the respective non-blocking SMC
socket is released to avoid waiting on socket operations or timeouts.

Signed-off-by: Hans Wippel <hwippel@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c