Skip to content
Snippets Groups Projects
Commit 02669b17 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

XArray: Turn xa_init_flags into a static inline


A regular xa_init_flags() put all dynamically-initialised XArrays into
the same locking class.  That leads to lockdep believing that taking
one XArray lock while holding another is a deadlock.  It's possible to
work around some of these situations with separate locking classes for
irq/bh/regular XArrays, and SINGLE_DEPTH_NESTING, but that's ugly, and
it doesn't work for all situations (where we have completely unrelated
XArrays).

Signed-off-by: default avatarMatthew Wilcox <willy@infradead.org>
parent 490fd30f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment