aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_verbs.h
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2019-12-12 13:30:23 +0200
committerJason Gunthorpe <jgg@mellanox.com>2020-01-07 20:18:11 -0400
commit17e1064632512db419cb9bb4555aec1763969b7d (patch)
treee85457ce9c6efa3642c710fa4abca816842cf351 /include/rdma/ib_verbs.h
parentIB/core: Let IB core distribute cache update events (diff)
downloadlinux-dev-17e1064632512db419cb9bb4555aec1763969b7d.tar.xz
linux-dev-17e1064632512db419cb9bb4555aec1763969b7d.zip
IB/core: Cut down single member ib_cache structure
Given that ib_cache structure has only single member now, merge the cache lock directly in the ib_device. Link: https://lore.kernel.org/r/20191212113024.336702-4-leon@kernel.org Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--include/rdma/ib_verbs.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index f36fb657518f..37dac147a946 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -2152,10 +2152,6 @@ struct ib_port_cache {
enum ib_port_state port_state;
};
-struct ib_cache {
- rwlock_t lock;
-};
-
struct ib_port_immutable {
int pkey_tbl_len;
int gid_tbl_len;
@@ -2641,7 +2637,8 @@ struct ib_device {
struct xarray client_data;
struct mutex unregistration_lock;
- struct ib_cache cache;
+ /* Synchronize GID, Pkey cache entries, subnet prefix, LMC */
+ rwlock_t cache_lock;
/**
* port_data is indexed by port number
*/