summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mlx5/srq.h
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2019-02-21 03:20:37 +0300
committerJason Gunthorpe <jgg@mellanox.com>2019-03-26 15:39:42 +0300
commitb02a29eb8841bd4f210110bddb346c80478366a1 (patch)
tree8c565f6c36ad0db1e4bdf8b3cb46c98d5523bb93 /drivers/infiniband/hw/mlx5/srq.h
parent270a9833b2697d455f6ae12669b8220d3ea48f18 (diff)
downloadlinux-b02a29eb8841bd4f210110bddb346c80478366a1.tar.xz
mlx5: Convert mlx5_srq_table to XArray
Remove the custom spinlock as the XArray handles its own locking. Signed-off-by: Matthew Wilcox <willy@infradead.org> Acked-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/srq.h')
-rw-r--r--drivers/infiniband/hw/mlx5/srq.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/mlx5/srq.h b/drivers/infiniband/hw/mlx5/srq.h
index c330af35ff10..2c3627b2509d 100644
--- a/drivers/infiniband/hw/mlx5/srq.h
+++ b/drivers/infiniband/hw/mlx5/srq.h
@@ -51,10 +51,7 @@ struct mlx5_core_srq {
struct mlx5_srq_table {
struct notifier_block nb;
- /* protect radix tree
- */
- spinlock_t lock;
- struct radix_tree_root tree;
+ struct xarray array;
};
int mlx5_cmd_create_srq(struct mlx5_ib_dev *dev, struct mlx5_core_srq *srq,