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)
commitb03faa1fafc8018295401dc558bdc76362d860a4
tree43ddfd79f928b7b5fee75a78ccf4c080e2c7a2e0
parent41c80be24be4eae27571ce524def9467c9705ce5
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