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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user