diff options
author | Ursula Braun <ubraun@linux.vnet.ibm.com> | 2018-03-14 13:01:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-14 20:40:44 +0300 |
commit | 268ffcc4ebfc8b10c1502357dfb82ce6af0770ac (patch) | |
tree | 10632783df5be2c7eb73c0d2e73dda49bafab625 /net/smc/af_smc.c | |
parent | c9f4c6cf53bfafb639386a4c094929f13f573e04 (diff) | |
download | linux-268ffcc4ebfc8b10c1502357dfb82ce6af0770ac.tar.xz |
net/smc: free link group without pending free_work only
Make sure there is no pending or running free_work worker for the link
group when freeing the link group.
Signed-off-by: Ursula Braun <ubraun@linux.vnet.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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c index 2c6f4e0a9f3d..649489f825a5 100644 --- a/net/smc/af_smc.c +++ b/net/smc/af_smc.c @@ -1477,6 +1477,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); + cancel_delayed_work_sync(&lgr->free_work); smc_lgr_free(lgr); /* free link group */ } static_branch_disable(&tcp_have_smc); |