diff options
author | Matthew Wilcox <willy@infradead.org> | 2019-02-20 16:20:45 -0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-04-25 12:27:11 -0300 |
commit | b9b0f34531e0f8ff7fd0b78adfbc0e8209900f83 (patch) | |
tree | c8490ab74a774bab4ac9f49e6a681ccb33982d87 /drivers/infiniband/core/uverbs.h | |
parent | a7b36d5fa86c70fbde311659fb2a7b8a52d965a1 (diff) |
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.h | 4 |
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 { |