]> 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)
commit847c8cf9ef61b9f5115392a70791cd050ff58dcc
tree00ec1288640766d1124baa26c72ec2f0a16638aa
parente6da47f39fc61c8bb91cec3afac88c416208370a
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