Skip to contentSkip to conversation

lockdep: lookup_chain_cache comment errata

PATCH In review Jarek Poplawski 2 participants 2 messages Apr 19, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lockdep: lookup_chain_cache comment errata

[PATCH] lockdep: lookup_chain_cache comment errata

---

kernel/lockdep.c +3 -2
diff -Nurp 2.6.21-rc7-/kernel/lockdep.c 2.6.21-rc7/kernel/lockdep.c
@@ -1313,8 +1313,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)
 {