aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/uverbs.h
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2019-02-20 16:20:45 -0800
committerJason Gunthorpe <jgg@mellanox.com>2019-04-25 12:27:11 -0300
commitb9b0f34531e0f8ff7fd0b78adfbc0e8209900f83 (patch)
treec8490ab74a774bab4ac9f49e6a681ccb33982d87 /drivers/infiniband/core/uverbs.h
parentib/bnxt: Remove mention of idr_alloc from comment (diff)
downloadlinux-dev-b9b0f34531e0f8ff7fd0b78adfbc0e8209900f83.tar.xz
linux-dev-b9b0f34531e0f8ff7fd0b78adfbc0e8209900f83.zip
uverbs: Convert idr to XArray
The word 'idr' is scattered throughout the API, so I haven't changed it, but the 'idr' variable is now an XArray. Signed-off-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs.h')
-rw-r--r--drivers/infiniband/core/uverbs.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/core/uverbs.h b/drivers/infiniband/core/uverbs.h
index d2c29868172c..1e5aeb39f774 100644
--- a/drivers/infiniband/core/uverbs.h
+++ b/drivers/infiniband/core/uverbs.h
@@ -162,9 +162,7 @@ struct ib_uverbs_file {
struct list_head umaps;
struct page *disassociate_page;
- struct idr idr;
- /* spinlock protects write access to idr */
- spinlock_t idr_lock;
+ struct xarray idr;
};
struct ib_uverbs_event {