]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: mutex to protect the lgr against parallel reconfigurations
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 1 May 2020 10:48:05 +0000 (12:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 23:20:04 +0000 (16:20 -0700)
commit420ab2a944a28865468c2e7b4a0bf68337a8e69e
tree00ec1288640766d1124baa26c72ec2f0a16638aa
parentf910400bd07f5e6e275d0bcae76e6edd3de9017b
net/smc: mutex to protect the lgr against parallel reconfigurations

Introduce llc_conf_mutex in the link group which is used to protect the
buffers and lgr states against parallel link reconfiguration.
This ensures that new connections do not start to register buffers with
the links of a link group when link creation or termination is running.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c
net/smc/smc_core.c
net/smc/smc_core.h
net/smc/smc_llc.c