OSDN Git Service

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)
commit2a0674fffb6bc1a7c0f46bb2e0b1bcf1d49c2232
tree42a4a0ef1c990fb8bcef6557850c5b13448a9b96
parent8317976096635110603c3e143bcaf8773f4a3e65
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