diff options
author | Jarek Poplawski | 2007-05-08 09:30:12 +0200 |
---|---|---|
committer | Linus Torvalds | 2007-05-08 20:15:11 +0200 |
commit | 9e860d000a90cfc9ca270ddb6e99b177e6aa91cd (patch) | |
tree | 9a7ab3e8c007f01cf9603a71a3842d68e4cbf41d /kernel/lockdep.c | |
parent | SPIN_LOCK_UNLOCKED cleanup in drivers/serial (diff) | |
download | kernel-qcow2-linux-9e860d000a90cfc9ca270ddb6e99b177e6aa91cd.tar.gz kernel-qcow2-linux-9e860d000a90cfc9ca270ddb6e99b177e6aa91cd.tar.xz kernel-qcow2-linux-9e860d000a90cfc9ca270ddb6e99b177e6aa91cd.zip |
lockdep: lookup_chain_cache comment errata
Signed-off-by: Jarek Poplawski <jarkao2@o2.pl>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/lockdep.c')
-rw-r--r-- | kernel/lockdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c index 7f573136a905..dc4ea4c2b4c8 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c @@ -1309,8 +1309,9 @@ out_unlock_set: /* * Look up a dependency chain. If the key is not present yet then - * add it and return 0 - in this case the new dependency chain is - * validated. If the key is already hashed, return 1. + * add it and return 1 - in this case the new dependency chain is + * validated. If the key is already hashed, return 0. + * (On return with 1 graph_lock is held.) */ static inline int lookup_chain_cache(u64 chain_key, struct lock_class *class) { |