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 14:50:24 -0800 |
commit | 5f78fe968d76902944534db85c4fb244dedc87f4 (patch) | |
tree | 458c3f686a4cdfc181a26a13cc89dc57e683c1ea /net/smc/smc_core.h | |
parent | ba95206042099ad2d3a08c2b484431736c921904 (diff) | |
download | linux-5f78fe968d76902944534db85c4fb244dedc87f4.tar.bz2 |
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_core.h')
-rw-r--r-- | net/smc/smc_core.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/net/smc/smc_core.h b/net/smc/smc_core.h index 094d43c24345..5695c7bc639e 100644 --- a/net/smc/smc_core.h +++ b/net/smc/smc_core.h @@ -285,18 +285,12 @@ static inline struct smc_connection *smc_lgr_find_conn( return res; } -static inline void smc_lgr_terminate_sched(struct smc_link_group *lgr) -{ - if (!lgr->terminating && !lgr->freeing) - schedule_work(&lgr->terminate_work); -} - struct smc_sock; struct smc_clc_msg_accept_confirm; struct smc_clc_msg_local; void smc_lgr_forget(struct smc_link_group *lgr); -void smc_lgr_terminate(struct smc_link_group *lgr); +void smc_lgr_terminate_sched(struct smc_link_group *lgr); void smc_port_terminate(struct smc_ib_device *smcibdev, u8 ibport); void smc_smcd_terminate(struct smcd_dev *dev, u64 peer_gid, unsigned short vlan); |