net/smc: improve close of terminated socket
authorUrsula Braun <ubraun@linux.ibm.com>
Wed, 9 Oct 2019 08:07:47 +0000 (10:07 +0200)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 10 Oct 2019 02:45:44 +0000 (19:45 -0700)
commitd18963cf036566690c8bfd8b1d97d69f9a7d130f
tree5a80d7a788657bad4b1f2d79335703c381abb2fc
parentc3d9494e68c4a5d23227ede822fda9bd68bef8e3
net/smc: improve close of terminated socket

Make sure a terminated SMC socket reaches the CLOSED state.
Even if sending of close flags fails, change the socket state to
the intended state to avoid dangling sockets not reaching the
CLOSED state.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
net/smc/smc_close.c