]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: improve abnormal termination locking
authorUrsula Braun <ubraun@linux.ibm.com>
Mon, 21 Oct 2019 14:13:10 +0000 (16:13 +0200)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 18:23:43 +0000 (11:23 -0700)
commit3cf290dfb844ec5968b02abedd0562323b0311c1
treeee0edeb43b49e4f4bea1183a0561d7dee95f4b39
parent69f6156d2c7d3cc008b1616054586f0f7198c0d4
net/smc: improve abnormal termination locking

Locking hierarchy requires that the link group conns_lock can be
taken if the socket lock is held, but not vice versa. Nevertheless
socket termination during abnormal link group termination should
be protected by the socket lock.
This patch reduces the time segments the link group conns_lock is
held to enable usage of lock_sock in smc_lgr_terminate().

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