ida: Lock the IDA in ida_destroy
authorMatthew Wilcox <willy@infradead.org>
Thu, 21 Jun 2018 19:36:45 +0000 (15:36 -0400)
committerMatthew Wilcox <willy@infradead.org>
Wed, 22 Aug 2018 03:49:31 +0000 (23:49 -0400)
commit50d97d50715a8664f6bddc18211279cd74b8c3bf
treecef02f64a84dc6e0132be30ab0bccef1496ae85f
parent76f070b4135563165c523ab560056b7a9353e2f2
ida: Lock the IDA in ida_destroy

The user has no need to handle locking between ida_simple_get() and
ida_simple_remove().  They shouldn't be forced to think about whether
ida_destroy() might be called at the same time as any of their other
IDA manipulation calls.  Improve the documnetation while I'm in here.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
lib/idr.c