diff options
-rw-r--r-- | kernel/locking/lockdep.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 3c477018e184..bc1efc12a8c5 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c | |||
@@ -2519,10 +2519,11 @@ print_chain_keys_held_locks(struct task_struct *curr, struct held_lock *hlock_ne | |||
2519 | struct held_lock *hlock; | 2519 | struct held_lock *hlock; |
2520 | u64 chain_key = 0; | 2520 | u64 chain_key = 0; |
2521 | int depth = curr->lockdep_depth; | 2521 | int depth = curr->lockdep_depth; |
2522 | int i; | 2522 | int i = get_first_held_lock(curr, hlock_next); |
2523 | 2523 | ||
2524 | printk("depth: %u\n", depth + 1); | 2524 | printk("depth: %u (irq_context %u)\n", depth - i + 1, |
2525 | for (i = get_first_held_lock(curr, hlock_next); i < depth; i++) { | 2525 | hlock_next->irq_context); |
2526 | for (; i < depth; i++) { | ||
2526 | hlock = curr->held_locks + i; | 2527 | hlock = curr->held_locks + i; |
2527 | chain_key = print_chain_key_iteration(hlock->class_idx, chain_key); | 2528 | chain_key = print_chain_key_iteration(hlock->class_idx, chain_key); |
2528 | 2529 | ||