]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaedb482c3f4b0023e3c8732f105cbc2fb167f0d4
tree366898e8ad37ab68bb740e40dda6adf919624ab2
parent75a3279425e5b2b293558c0868f4ca056771a353
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