diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2020-02-17 18:24:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-18 01:50:24 +0300 |
commit | 5f78fe968d76902944534db85c4fb244dedc87f4 (patch) | |
tree | 458c3f686a4cdfc181a26a13cc89dc57e683c1ea /net/smc/smc_clc.c | |
parent | ba95206042099ad2d3a08c2b484431736c921904 (diff) | |
download | linux-5f78fe968d76902944534db85c4fb244dedc87f4.tar.xz |
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_clc.c')
-rw-r--r-- | net/smc/smc_clc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_clc.c b/net/smc/smc_clc.c index aee9ccfa99c2..3e16b887cfcf 100644 --- a/net/smc/smc_clc.c +++ b/net/smc/smc_clc.c @@ -349,7 +349,7 @@ int smc_clc_wait_msg(struct smc_sock *smc, void *buf, int buflen, smc->peer_diagnosis = ntohl(dclc->peer_diagnosis); if (((struct smc_clc_msg_decline *)buf)->hdr.flag) { smc->conn.lgr->sync_err = 1; - smc_lgr_terminate(smc->conn.lgr); + smc_lgr_terminate_sched(smc->conn.lgr); } } |