[PATCH 7/8] locking/lockdep: Update obsolete struct field description
From: Yuyang Du
Date: Tue Feb 26 2019 - 05:03:58 EST
The lock_chain struct definition has outdated comment, so update it.
Signed-off-by: Yuyang Du <duyuyang@xxxxxxxxx>
---
include/linux/lockdep.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index c5335df..128f276 100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -192,7 +192,11 @@ struct lock_list {
* We record lock dependency chains, so that we can cache them:
*/
struct lock_chain {
- /* see BUILD_BUG_ON()s in lookup_chain_cache() */
+ /*
+ * irq_context: the same as irq_context in held_lock below
+ * depth: the number of held locks in this chain
+ * base: the index in chain_hlocks for this chain
+ */
unsigned int irq_context : 2,
depth : 6,
base : 24;
--
1.8.3.1