kernel:lockdep:fix statistics for nr_cyclic_check_recursions/checks
PATCH 1/1 kernel:lockdep:fix statistics for nr_cyclic_check_recursions/checks
From: Ming Lei <[email protected]>
Signed-off-by Ming Lei <[email protected]>
--- kernel/lockdep.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/lockdep.c +2 -2
@@ -1062,7 +1062,7 @@ check_noncircular(struct lock_class *source, unsigned int depth)if (lockdep_dependency_visit (source, depth))return 1 ; -debug_atomic_inc (&nr_cyclic_check_recursions); +debug_atomic_inc (&nr_cyclic_check_checks);if (depth > max_recursion_depth) max_recursion_depth = depth;if (depth >=RECURSION_LIMIT )
@@ -1073,7 +1073,7 @@ check_noncircular(struct lock_class *source, unsigned int depth)list_for_each_entry (entry, &source->locks_after, entry) {if (entry->class ==hlock_class (check_target))return print_circular_bug_header (entry, depth+1 ); -debug_atomic_inc (&nr_cyclic_checks); +debug_atomic_inc (&nr_cyclic_recursions);if (!check_noncircular (entry->class, depth+1 ))return print_circular_bug_entry (entry, depth+1 ); }
Signature · 1 line
1.6.0.GIT