diff options
author | Ursula Braun <ubraun@linux.ibm.com> | 2019-10-09 11:07:44 +0300 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-10 05:45:44 +0300 |
commit | a0a62ee15a829ebf8aeec55a4f1688230439b3e0 (patch) | |
tree | 9d2fd250b1d304ac300fcef573ba502bd188bcb4 /net/smc/smc_ism.c | |
parent | a2351c5d86d7acf8eef17fba4ac1fc5b305a37c0 (diff) | |
download | linux-a0a62ee15a829ebf8aeec55a4f1688230439b3e0.tar.xz |
net/smc: separate locks for SMCD and SMCR link group lists
This patch introduces separate locks for the split SMCD and SMCR
link group lists.
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>
Diffstat (limited to 'net/smc/smc_ism.c')
-rw-r--r-- | net/smc/smc_ism.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/smc/smc_ism.c b/net/smc/smc_ism.c index 674eb5ae2320..34dc619655e8 100644 --- a/net/smc/smc_ism.c +++ b/net/smc/smc_ism.c @@ -286,6 +286,7 @@ struct smcd_dev *smcd_alloc_dev(struct device *parent, const char *name, smc_pnetid_by_dev_port(parent, 0, smcd->pnetid); spin_lock_init(&smcd->lock); + spin_lock_init(&smcd->lgr_lock); INIT_LIST_HEAD(&smcd->vlan); INIT_LIST_HEAD(&smcd->lgr_list); smcd->event_wq = alloc_ordered_workqueue("ism_evt_wq-%s)", |