]> git.baikalelectronics.ru Git - kernel.git/commit
IDR: Expose the XArray lock
authorwilly@infradead.org <willy@infradead.org>
Wed, 13 Jun 2018 18:45:55 +0000 (11:45 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Jun 2018 17:22:54 +0000 (11:22 -0600)
commit786270e29fcf61d508fb4bf168042573239e0723
tree3d6b7ce8e6569c34ed3cbee7a34fb5e799250283
parent4d1bc33d71f56e013e93840eeeb146248bf2af33
IDR: Expose the XArray lock

Allow users of the IDR to use the XArray lock for their own
synchronisation purposes.  The IDR continues to rely on the caller to
handle locking, but this lets the caller use the lock embedded in the
IDR data structure instead of allocating their own lock.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/linux/idr.h