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)
commitd550066776aae3bb31e0240cab24f62e33c47fd3
tree00ec1288640766d1124baa26c72ec2f0a16638aa
parentfbed3b37c89633eb602f4ec8e30186e601b793e5
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