Commit 9e860d00 authored by Jarek Poplawski's avatar Jarek Poplawski Committed by Linus Torvalds

lockdep: lookup_chain_cache comment errata

Signed-off-by: default avatarJarek Poplawski <jarkao2@o2.pl>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 076fa0fa
...@@ -1309,8 +1309,9 @@ register_lock_class(struct lockdep_map *lock, unsigned int subclass, int force) ...@@ -1309,8 +1309,9 @@ register_lock_class(struct lockdep_map *lock, unsigned int subclass, int force)
/* /*
* Look up a dependency chain. If the key is not present yet then * 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 * add it and return 1 - in this case the new dependency chain is
* validated. If the key is already hashed, return 1. * 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) static inline int lookup_chain_cache(u64 chain_key, struct lock_class *class)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment