RDMA/mlx5: Replace ent->lock with xa_lock
authorAharon Landau <aharonl@nvidia.com>
Tue, 26 Jul 2022 07:19:07 +0000 (10:19 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 27 Jul 2022 17:45:48 +0000 (14:45 -0300)
commit17ae355926ed1832449d52748334b8fa799301f1
tree44abd1fe91c3e08686b41d5be950720b3ea69e6c
parent1e75550648da1fa1cd1969e7597355de8fe8caf6
RDMA/mlx5: Replace ent->lock with xa_lock

In the next patch, ent->list will be replaced with an xarray. The xarray
uses an internal lock to protect the indexes. Use it to protect all the
entry fields, and get rid of ent->lock.

Link: https://lore.kernel.org/r/20220726071911.122765-2-michaelgur@nvidia.com
Signed-off-by: Aharon Landau <aharonl@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c