diff options
author | Ursula Braun <ubraun@linux.ibm.com> | 2019-11-14 13:02:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-15 12:28:28 -0800 |
commit | 5421ec281df9dfda4418c02959e1f76097cabd9a (patch) | |
tree | ee4914cb9269d7d823bbb48fba48f7d359e4675b /net/smc/smc_llc.c | |
parent | 42bfba9eaa33dd4af0b50b87508062a41ec26653 (diff) | |
download | linux-stable-5421ec281df9dfda4418c02959e1f76097cabd9a.tar.gz linux-stable-5421ec281df9dfda4418c02959e1f76097cabd9a.tar.bz2 linux-stable-5421ec281df9dfda4418c02959e1f76097cabd9a.zip |
net/smc: abnormal termination of SMCD link groups
A final cleanup due to SMCD device removal means immediate freeing
of all link groups belonging to this device in interrupt context.
This patch introduces a separate SMCD link group termination routine,
which terminates all link groups of an SMCD device.
This new routine smcd_terminate_all ()is reused if the smc module is
unloaded.
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@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 e1918ffaf125..26a18c872455 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(smc_get_lgr(link), true); return; } next_interval = link->llc_testlink_time; |