summaryrefslogtreecommitdiff
path: root/include/net/smc.h
diff options
context:
space:
mode:
authorUrsula Braun <ubraun@linux.ibm.com>2019-10-09 11:07:44 +0300
committerJakub Kicinski <jakub.kicinski@netronome.com>2019-10-10 05:45:44 +0300
commita0a62ee15a829ebf8aeec55a4f1688230439b3e0 (patch)
tree9d2fd250b1d304ac300fcef573ba502bd188bcb4 /include/net/smc.h
parenta2351c5d86d7acf8eef17fba4ac1fc5b305a37c0 (diff)
downloadlinux-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 'include/net/smc.h')
-rw-r--r--include/net/smc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/smc.h b/include/net/smc.h
index c08e8c415673..438bb0261f45 100644
--- a/include/net/smc.h
+++ b/include/net/smc.h
@@ -76,6 +76,7 @@ struct smcd_dev {
u8 pnetid[SMC_MAX_PNETID_LEN];
bool pnetid_by_user;
struct list_head lgr_list;
+ spinlock_t lgr_lock;
};
struct smcd_dev *smcd_alloc_dev(struct device *parent, const char *name,