]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: serialize connection creation in all cases
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Fri, 28 Jul 2017 11:56:13 +0000 (13:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jul 2017 18:22:57 +0000 (11:22 -0700)
commita392cacdabd51d01c3c8663cd2e4080a77c76431
treedc117496ce45bee19f127fea2a9bbf49791b96e4
parent10f26b316ed3cea5c39b39468bc87dde9387aeda
net/smc: serialize connection creation in all cases

If a link group for a new server connection exists already, the mutex
serializing the determination of link groups is given up early.
The coming registration of memory regions benefits from the serialization
as well, if the mutex is held till connection creation is finished.
This patch postpones the unlocking of the link group creation mutex.

Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c