]> 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)
commitca58819f88b6b455a1e6fcde476959b8e34eda95
tree3d6b7ce8e6569c34ed3cbee7a34fb5e799250283
parent8d9ee3e8115b35b890f363785533bc0b64ac007a
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