]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/smc: improve smc_lgr_cleanup()
authorKarsten Graul <kgraul@linux.ibm.com>
Mon, 17 Feb 2020 15:24:50 +0000 (16:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 22:50:24 +0000 (14:50 -0800)
commit55dd5758175828bd03f4392b4df0d37edd31559d
treebacff0a304f2541c4b7804283432852e1fbd94fb
parent790a9a7cce6564fac132ce91ace5c7ab20d9a70f
net/smc: improve smc_lgr_cleanup()

smc_lgr_cleanup() is called during termination processing, there is no
need to send a DELETE_LINK at that time. A DELETE_LINK should have been
sent before the termination is initiated, if needed.
And remove the extra call to wake_up(&lnk->wr_reg_wait) because
smc_llc_link_inactive() already calls the related helper function
smc_wr_wakeup_reg_wait().

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>
net/smc/smc_core.c