]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: postpone release of clcsock
authorUrsula Braun <ubraun@linux.ibm.com>
Thu, 7 Feb 2019 14:56:15 +0000 (15:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2019 02:06:18 +0000 (18:06 -0800)
commit463355525463c76f9c60bc5fcd7ffa226bd805d7
tree43ddfd79f928b7b5fee75a78ccf4c080e2c7a2e0
parent8d93f3f3c17e098c0a4c9045767c9a85d26c6a0f
net/smc: postpone release of clcsock

According to RFC7609 (http://www.rfc-editor.org/info/rfc7609)
first the SMC-R connection is shut down and then the normal TCP
connection FIN processing drives cleanup of the internal TCP connection.
The unconditional release of the clcsock during active socket closing
has to be postponed if the peer has not yet signalled socket closing.

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