net/smc: clear link during SMC client link down processing
authorKarsten Graul <kgraul@linux.ibm.com>
Sat, 18 Jul 2020 13:06:10 +0000 (15:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jul 2020 22:30:22 +0000 (15:30 -0700)
commit68fd8942038f30dbb64a594dc15d9948289de42a
treef8c9bba2920f1363ab3c6a7866aa06dbe94858db
parenta35fffbf98189ba8359f19073286b2ea816255c5
net/smc: clear link during SMC client link down processing

In a link-down condition we notify the SMC server and expect that the
server will finally trigger the link clear processing on the client
side. This could fail when anything along this notification path goes
wrong. Clear the link as part of SMC client link-down processing to
prevent dangling links.

Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Fixes: 541afa10c126 ("net/smc: add smcr_port_err() and smcr_link_down() processing")
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c