diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2020-02-17 16:24:54 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-17 23:50:24 +0100 |
commit | 5f78fe968d76902944534db85c4fb244dedc87f4 (patch) | |
tree | 458c3f686a4cdfc181a26a13cc89dc57e683c1ea /net/smc/smc_llc.c | |
parent | net/smc: remove unused parameter of smc_lgr_terminate() (diff) | |
download | linux-5f78fe968d76902944534db85c4fb244dedc87f4.tar.xz linux-5f78fe968d76902944534db85c4fb244dedc87f4.zip |
net/smc: simplify normal link termination
smc_lgr_terminate() and smc_lgr_terminate_sched() both result in soft
link termination, smc_lgr_terminate_sched() is scheduling a worker for
this task. Take out complexity by always using the termination worker
and getting rid of smc_lgr_terminate() completely.
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/smc_llc.c')
-rw-r--r-- | net/smc/smc_llc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_llc.c b/net/smc/smc_llc.c index b134a08c929e..0e52aab53d97 100644 --- a/net/smc/smc_llc.c +++ b/net/smc/smc_llc.c @@ -614,7 +614,7 @@ static void smc_llc_testlink_work(struct work_struct *work) rc = wait_for_completion_interruptible_timeout(&link->llc_testlink_resp, SMC_LLC_WAIT_TIME); if (rc <= 0) { - smc_lgr_terminate(smc_get_lgr(link)); + smc_lgr_terminate_sched(smc_get_lgr(link)); return; } next_interval = link->llc_testlink_time; |