commit | 3c60e868c31e4ff144776bf53ff0dfe9e9e4ec15 | [log] [tgz] |
---|---|---|
author | willy@infradead.org <willy@infradead.org> | Wed Jun 13 11:45:55 2018 -0700 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Mon Jun 18 11:22:54 2018 -0600 |
tree | 3d6b7ce8e6569c34ed3cbee7a34fb5e799250283 | |
parent | 89af969a665390dc6b156fef55755ca546cd8d92 [diff] |
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>