]> 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)
commit433df17c21d4744c9f9377c3626581393d05dae8
tree43ddfd79f928b7b5fee75a78ccf4c080e2c7a2e0
parentb1cf1a710112cfd9b8ce4e4b1ac20c3944c1f98c
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