IB/rxe: Replace spinlock with rwlock
authorParav Pandit <parav@mellanox.com>
Mon, 27 Aug 2018 05:44:14 +0000 (08:44 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 30 Aug 2018 20:31:50 +0000 (16:31 -0400)
commit66d0f207dbf0e983c8006eb2fc5060163646210f
tree9e0df1e6666c86e730e07d54c573d079860acaa9
parent3db2bceb29fd9a2f31d5df573f337dbba577f8e9
IB/rxe: Replace spinlock with rwlock

Concurrent readers which read rb tree are protected using read lock.
Concurrent writers which add element to pool are protected
using write lock.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_pool.c
drivers/infiniband/sw/rxe/rxe_pool.h