summaryrefslogtreecommitdiff
path: root/kernel/locking
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/locking')
-rw-r--r--kernel/locking/lockdep.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index 151bd3de5936..7ea4a5793421 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -1410,6 +1410,7 @@ static int add_lock_to_list(struct lock_class *this,
u16 distance, u8 dep,
const struct lock_trace *trace)
{
+ trace_printk("%s -> %s\n", links_to->name, this->name);
struct lock_list *entry;
/*
* Lock not present yet - get a new dependency struct and
@@ -1784,6 +1785,15 @@ static enum bfs_result __bfs(struct lock_list *source_entry,
if (skip && skip(lock, data))
continue;
+ {
+ struct lock_class *next = hlock_class((struct held_lock *)data);
+
+ if (!strcmp("bcachefs_btree", lock->class->name) ||
+ !strcmp("bcachefs_btree", next->name))
+ trace_printk("considering %s -> %s\n",
+ lock->class->name, next->name);
+ }
+
if (match(lock, data)) {
*target_entry = lock;
return BFS_RMATCH;