summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/qedr/main.c
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2019-02-20 16:20:58 -0800
committerJason Gunthorpe <jgg@mellanox.com>2019-03-29 14:53:57 -0300
commitb6014f9e5f39e389f0034a6c82b7a6542eb6477e (patch)
treef9b82ba65f073fe297b7a0cb131974a8e45ea897 /drivers/infiniband/hw/qedr/main.c
parent0ee3b915b1b03c4deeea9d47af3e6a8e5e66c262 (diff)
downloadlinux-b6014f9e5f39e389f0034a6c82b7a6542eb6477e.tar.bz2
qedr: Convert qpidr to XArray
Signed-off-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/qedr/main.c')
-rw-r--r--drivers/infiniband/hw/qedr/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/qedr/main.c b/drivers/infiniband/hw/qedr/main.c
index 996d9ecd93e0..21bd625f160e 100644
--- a/drivers/infiniband/hw/qedr/main.c
+++ b/drivers/infiniband/hw/qedr/main.c
@@ -364,8 +364,7 @@ static int qedr_alloc_resources(struct qedr_dev *dev)
spin_lock_init(&dev->sgid_lock);
if (IS_IWARP(dev)) {
- spin_lock_init(&dev->qpidr.idr_lock);
- idr_init(&dev->qpidr.idr);
+ xa_init_flags(&dev->qps, XA_FLAGS_LOCK_IRQ);
dev->iwarp_wq = create_singlethread_workqueue("qedr_iwarpq");
}