IB/core: Cut down single member ib_cache structure
authorParav Pandit <parav@mellanox.com>
Thu, 12 Dec 2019 11:30:23 +0000 (13:30 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 8 Jan 2020 00:18:11 +0000 (20:18 -0400)
commit17e1064632512db419cb9bb4555aec1763969b7d
treee85457ce9c6efa3642c710fa4abca816842cf351
parent6b57cea9221b0247ad5111b348522625e489a8e4
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>
drivers/infiniband/core/cache.c
include/rdma/ib_verbs.h