RDMA/core: Define client_data_lock as rwlock instead of spinlock
authorParav Pandit <parav@mellanox.com>
Tue, 28 Aug 2018 12:08:45 +0000 (15:08 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 6 Sep 2018 19:45:38 +0000 (13:45 -0600)
commite1f540c3ed0e9634d0f8c4600f3c85df8aff4ae2
tree4d438a38528fd667dd63d48c12c580316cb8946a
parent2d65f49ff961da5e974a48e250edd24b0c6f54d6
RDMA/core: Define client_data_lock as rwlock instead of spinlock

Even though device registration/unregistration and client
registration/unregistration is not a performance path, define the
client_data_lock as rwlock for code clarity.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c
include/rdma/ib_verbs.h