Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39709
b: refs/heads/master
c: ca268c6
h: refs/heads/master
i:
  39707: cfff1fd
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Oct 17, 2006
1 parent c5c12f1 commit 28802e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 623a43952abfad2d48f287d1fab07b2089d07554
refs/heads/master: ca268c691de95612981b93e58899c1d73fdb6b47
8 changes: 5 additions & 3 deletions trunk/kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,8 @@ static noinline int print_circular_bug_tail(void)
return 0;
}

#define RECURSION_LIMIT 40

static int noinline print_infinite_recursion_bug(void)
{
__raw_spin_unlock(&hash_lock);
Expand All @@ -595,7 +597,7 @@ check_noncircular(struct lock_class *source, unsigned int depth)
debug_atomic_inc(&nr_cyclic_check_recursions);
if (depth > max_recursion_depth)
max_recursion_depth = depth;
if (depth >= 20)
if (depth >= RECURSION_LIMIT)
return print_infinite_recursion_bug();
/*
* Check this lock's dependency list:
Expand Down Expand Up @@ -645,7 +647,7 @@ find_usage_forwards(struct lock_class *source, unsigned int depth)

if (depth > max_recursion_depth)
max_recursion_depth = depth;
if (depth >= 20)
if (depth >= RECURSION_LIMIT)
return print_infinite_recursion_bug();

debug_atomic_inc(&nr_find_usage_forwards_checks);
Expand Down Expand Up @@ -684,7 +686,7 @@ find_usage_backwards(struct lock_class *source, unsigned int depth)

if (depth > max_recursion_depth)
max_recursion_depth = depth;
if (depth >= 20)
if (depth >= RECURSION_LIMIT)
return print_infinite_recursion_bug();

debug_atomic_inc(&nr_find_usage_backwards_checks);
Expand Down

0 comments on commit 28802e1

Please sign in to comment.