summaryrefslogtreecommitdiffstats
path: root/net/smc/af_smc.c
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2018-05-15 17:05:01 +0200
committerDavid S. Miller <davem@davemloft.net>2018-05-16 11:49:20 -0400
commit3cf52eb11fa00b8dc8a773893fd808e3a09b3961 (patch)
tree4a1e1bfbdc9ceb3e5830fdc8564bc84f919f40a3 /net/smc/af_smc.c
parent1401ea045b96ae1112bf384e6f03f909643f04be (diff)
downloadblackbird-obmc-linux-3cf52eb11fa00b8dc8a773893fd808e3a09b3961.tar.gz
blackbird-obmc-linux-3cf52eb11fa00b8dc8a773893fd808e3a09b3961.zip
net/smc: set link inactive before calling smc_lgr_free()
Before smc_lgr_free() is called the link must be set inactive by calling smc_llc_link_inactive(). Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/af_smc.c')
-rw-r--r--net/smc/af_smc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c
index ecf9ba68501b..d15762b057c0 100644
--- a/net/smc/af_smc.c
+++ b/net/smc/af_smc.c
@@ -1644,6 +1644,7 @@ static void __exit smc_exit(void)
spin_unlock_bh(&smc_lgr_list.lock);
list_for_each_entry_safe(lgr, lg, &lgr_freeing_list, list) {
list_del_init(&lgr->list);
+ smc_llc_link_inactive(&lgr->lnk[SMC_SINGLE_LINK]);
cancel_delayed_work_sync(&lgr->free_work);
smc_lgr_free(lgr); /* free link group */
}
OpenPOWER on IntegriCloud