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>
This commit is contained in:
committed by
Jason Gunthorpe
parent
6b57cea922
commit
17e1064632
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user