summaryrefslogtreecommitdiff
path: root/net/smc/smc_llc.h
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2020-05-04 14:18:46 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-04 10:54:39 -0700
commita52bcc919b14c9d78f03b2b4ff604e5ca69c7e6d (patch)
tree8c48325604e3de317858175c602fd7bbb07aca00 /net/smc/smc_llc.h
parent3e0c40afce4ea5b08bb7e3f65c55157817116640 (diff)
net/smc: improve termination processing
Add helper smcr_lgr_link_deactivate_all() and eliminate duplicate code. In smc_lgr_free(), clear the smc-r links before smc_lgr_free_bufs() is called so buffers are already prepared for free. The usage of the soft parameter in __smc_lgr_terminate() is no longer needed, smc_lgr_free() can be called directly. smc_lgr_terminate_sched() and smc_smcd_terminate() set lgr->freeing to indicate that the link group will be freed soon to avoid unnecessary schedules of the free worker. Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Reviewed-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_llc.h')
0 files changed, 0 insertions, 0 deletions