OSDN Git Service

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)
commit3c60e868c31e4ff144776bf53ff0dfe9e9e4ec15
tree3d6b7ce8e6569c34ed3cbee7a34fb5e799250283
parent89af969a665390dc6b156fef55755ca546cd8d92
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