]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/core: No need to protect kfree with spin lock and semaphore
authorParav Pandit <parav@mellanox.com>
Tue, 28 Aug 2018 12:08:41 +0000 (15:08 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 6 Sep 2018 19:45:38 +0000 (13:45 -0600)
commit93688ddbe1da1ead030b210dadc5a8cfbff95849
tree1b71a0e7e6df09572d2758f55c5633353b16bca1
parent722c7b2bfeadbae8d9aaa08552c456e09d17a7f7
RDMA/core: No need to protect kfree with spin lock and semaphore

While unregistering a client, only context removal should be protected
with lock. There is no need to protect a freeing of such context which is
already removed from the list.

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