]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: improve abnormal termination of link groups
authorUrsula Braun <ubraun@linux.ibm.com>
Mon, 21 Oct 2019 14:13:13 +0000 (16:13 +0200)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 18:23:44 +0000 (11:23 -0700)
commitd650b79f020826d85bd62724216e3e06d3ffd75b
tree42a4a0ef1c990fb8bcef6557850c5b13448a9b96
parent673a0db067423b8ebdb468c85fb04727a69f63b0
net/smc: improve abnormal termination of link groups

If a link group and its connections must be terminated,
* wake up socket waiters
* do not enable buffer reuse

A linkgroup might be terminated while normal connection closing
is running. Avoid buffer reuse and its related LLC DELETE RKEY
call, if linkgroup termination has started. And use the earliest
indication of linkgroup termination possible, namely the removal
from the linkgroup list.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
net/smc/smc_core.c