Skip to content

Commit

Permalink
Export __lockdep_no_validate__
Browse files Browse the repository at this point in the history
Hack, but bcache needs a way around lockdep for locking during garbage
collection - we need to keep multiple btree nodes locked for coalescing
and rw_lock_nested() isn't really sufficient or appropriate here.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Peter Zijlstra <peterz@infradead.org>
CC: Ingo Molnar <mingo@redhat.com>
  • Loading branch information
Kent Overstreet committed Mar 23, 2013
1 parent 9ca8f8e commit ea6749c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -2997,6 +2997,7 @@ void lockdep_init_map(struct lockdep_map *lock, const char *name,
EXPORT_SYMBOL_GPL(lockdep_init_map);

struct lock_class_key __lockdep_no_validate__;
EXPORT_SYMBOL_GPL(__lockdep_no_validate__);

static int
print_lock_nested_lock_not_held(struct task_struct *curr,
Expand Down

0 comments on commit ea6749c

Please sign in to comment.