Skip to content

Commit fd6ad75

Browse files
committed
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 <[email protected]>
2 parents 35c3569 + 9d876d3 commit fd6ad75

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

net/smc/af_smc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3501,6 +3501,7 @@ static int __init smc_init(void)
35013501
out_nl:
35023502
smc_nl_exit();
35033503
out_ism:
3504+
smc_clc_exit();
35043505
smc_ism_exit();
35053506
out_pernet_subsys_stat:
35063507
unregister_pernet_subsys(&smc_net_stat_ops);

net/smc/smc_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ static void __smc_lgr_terminate(struct smc_link_group *lgr, bool soft)
14641464
if (lgr->terminating)
14651465
return; /* lgr already terminating */
14661466
/* cancel free_work sync, will terminate when lgr->freeing is set */
1467-
cancel_delayed_work_sync(&lgr->free_work);
1467+
cancel_delayed_work(&lgr->free_work);
14681468
lgr->terminating = 1;
14691469

14701470
/* kill remaining link group connections */

0 commit comments

Comments
 (0)