Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86376
b: refs/heads/master
c: 1481197
h: refs/heads/master
v: v3
  • Loading branch information
Dale Farnsworth authored and Peter Zijlstra committed Feb 25, 2008
1 parent 244bee4 commit e76746d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: bdb9441e9c325d50b5ae17f7d3205d65b8ed2e5f
refs/heads/master: 1481197b50114d7212d659d41cb97f31a8934883
8 changes: 4 additions & 4 deletions trunk/kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,10 @@ register_lock_class(struct lockdep_map *lock, unsigned int subclass, int force)
* parallel walking of the hash-list safe:
*/
list_add_tail_rcu(&class->hash_entry, hash_head);
/*
* Add it to the global list of classes:
*/
list_add_tail_rcu(&class->lock_entry, &all_lock_classes);

if (verbose(class)) {
graph_unlock();
Expand Down Expand Up @@ -2282,10 +2286,6 @@ static int mark_lock(struct task_struct *curr, struct held_lock *this,
return 0;
break;
case LOCK_USED:
/*
* Add it to the global list of classes:
*/
list_add_tail_rcu(&this->class->lock_entry, &all_lock_classes);
debug_atomic_dec(&nr_unused_locks);
break;
default:
Expand Down

0 comments on commit e76746d

Please sign in to comment.