From: Jarek Poplawski Date: Tue, 8 May 2007 07:30:12 +0000 (-0700) Subject: lockdep: lookup_chain_cache comment errata X-Git-Tag: v2.6.22-rc1~647 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=9e860d000a90cfc9ca270ddb6e99b177e6aa91cd;p=linux-2.6-omap-h63xx.git lockdep: lookup_chain_cache comment errata Signed-off-by: Jarek Poplawski Acked-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/lockdep.c b/kernel/lockdep.c index 7f573136a90..dc4ea4c2b4c 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) {