Merge branch 'net-smc-fixes'
Wenjia Zhang says: ==================== net/smc: Fixes 2023-03-01 The 1st patch solves the problem that CLC message initialization was not properly reversed in error handling path. And the 2nd one fixes the possible deadlock triggered by cancel_delayed_work_sync(). ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
fd6ad75f8c
|
@ -3501,6 +3501,7 @@ out_pnet:
|
|||
out_nl:
|
||||
smc_nl_exit();
|
||||
out_ism:
|
||||
smc_clc_exit();
|
||||
smc_ism_exit();
|
||||
out_pernet_subsys_stat:
|
||||
unregister_pernet_subsys(&smc_net_stat_ops);
|
||||
|
|
|
@ -1464,7 +1464,7 @@ static void __smc_lgr_terminate(struct smc_link_group *lgr, bool soft)
|
|||
if (lgr->terminating)
|
||||
return; /* lgr already terminating */
|
||||
/* cancel free_work sync, will terminate when lgr->freeing is set */
|
||||
cancel_delayed_work_sync(&lgr->free_work);
|
||||
cancel_delayed_work(&lgr->free_work);
|
||||
lgr->terminating = 1;
|
||||
|
||||
/* kill remaining link group connections */
|
||||
|
|
Loading…
Reference in New Issue