IB/core: Remove the locking for character device bitmaps
authorHuy Nguyen <huyn@mellanox.com>
Mon, 8 Jan 2018 10:15:37 +0000 (12:15 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 11 Jan 2018 05:00:32 +0000 (22:00 -0700)
commit008b656f429824a1987f28150d66eaf8f26d58a1
tree366898e8ad37ab68bb740e40dda6adf919624ab2
parent6f301e06de4cf9ab7303f5acd43e64fcd4aa04be
IB/core: Remove the locking for character device bitmaps

Remove the locks that protect character device bitmaps of
uverbs, umad and issm.

The character device bitmaps are accessed in "client->add" and
"client->remove" calls from ib_register_device and ib_unregister_device
respectively. These calls are already protected by the "device_mutex"
mutex. Thus, the spinlocks are not needed.

Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/user_mad.c
drivers/infiniband/core/uverbs_main.c