From: Jarek Poplawski Date: Tue, 8 May 2007 07:30:12 +0000 (-0700) Subject: lockdep: lookup_chain_cache comment errata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e860d000a90cfc9ca270ddb6e99b177e6aa91cd;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 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) {