]> 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)
commiteb2263fead4c3b0de188b0ba8a479510d8e4c5c0
tree42a4a0ef1c990fb8bcef6557850c5b13448a9b96
parent4330c79ad299559adf6eee5edb0119cc583aadea
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