|
@@ -1759,11 +1759,10 @@ static void check_chain_key(struct task_struct *curr)
|
|
hlock = curr->held_locks + i;
|
|
hlock = curr->held_locks + i;
|
|
if (chain_key != hlock->prev_chain_key) {
|
|
if (chain_key != hlock->prev_chain_key) {
|
|
debug_locks_off();
|
|
debug_locks_off();
|
|
- printk("hm#1, depth: %u [%u], %016Lx != %016Lx\n",
|
|
|
|
|
|
+ WARN(1, "hm#1, depth: %u [%u], %016Lx != %016Lx\n",
|
|
curr->lockdep_depth, i,
|
|
curr->lockdep_depth, i,
|
|
(unsigned long long)chain_key,
|
|
(unsigned long long)chain_key,
|
|
(unsigned long long)hlock->prev_chain_key);
|
|
(unsigned long long)hlock->prev_chain_key);
|
|
- WARN_ON(1);
|
|
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
id = hlock->class_idx - 1;
|
|
id = hlock->class_idx - 1;
|
|
@@ -1778,11 +1777,10 @@ static void check_chain_key(struct task_struct *curr)
|
|
}
|
|
}
|
|
if (chain_key != curr->curr_chain_key) {
|
|
if (chain_key != curr->curr_chain_key) {
|
|
debug_locks_off();
|
|
debug_locks_off();
|
|
- printk("hm#2, depth: %u [%u], %016Lx != %016Lx\n",
|
|
|
|
|
|
+ WARN(1, "hm#2, depth: %u [%u], %016Lx != %016Lx\n",
|
|
curr->lockdep_depth, i,
|
|
curr->lockdep_depth, i,
|
|
(unsigned long long)chain_key,
|
|
(unsigned long long)chain_key,
|
|
(unsigned long long)curr->curr_chain_key);
|
|
(unsigned long long)curr->curr_chain_key);
|
|
- WARN_ON(1);
|
|
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|