diff options
author | Yuyang Du <duyuyang@gmail.com> | 2019-05-06 04:19:22 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-06-03 05:55:41 -0400 |
commit | d16dbd1b8a29bb9f8aca2c2f3bd1a0d2b7621126 (patch) | |
tree | 17ce6db51ad493d0157743f54dbfa33e66f69518 /include/linux/lockdep.h | |
parent | 834494b28024b39d45aea6bcc642b0fe94fe2503 (diff) |
locking/lockdep: Update obsolete struct field description
The lock_chain struct definition has outdated comment, update it and add
struct member description.
Signed-off-by: Yuyang Du <duyuyang@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: bvanassche@acm.org
Cc: frederic@kernel.org
Cc: ming.lei@redhat.com
Cc: will.deacon@arm.com
Link: https://lkml.kernel.org/r/20190506081939.74287-7-duyuyang@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/lockdep.h')
-rw-r--r-- | include/linux/lockdep.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 6e2377e6c1d6..851d44fa5457 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h | |||
@@ -203,11 +203,17 @@ struct lock_list { | |||
203 | struct lock_list *parent; | 203 | struct lock_list *parent; |
204 | }; | 204 | }; |
205 | 205 | ||
206 | /* | 206 | /** |
207 | * We record lock dependency chains, so that we can cache them: | 207 | * struct lock_chain - lock dependency chain record |
208 | * | ||
209 | * @irq_context: the same as irq_context in held_lock below | ||
210 | * @depth: the number of held locks in this chain | ||
211 | * @base: the index in chain_hlocks for this chain | ||
212 | * @entry: the collided lock chains in lock_chain hash list | ||
213 | * @chain_key: the hash key of this lock_chain | ||
208 | */ | 214 | */ |
209 | struct lock_chain { | 215 | struct lock_chain { |
210 | /* see BUILD_BUG_ON()s in lookup_chain_cache() */ | 216 | /* see BUILD_BUG_ON()s in add_chain_cache() */ |
211 | unsigned int irq_context : 2, | 217 | unsigned int irq_context : 2, |
212 | depth : 6, | 218 | depth : 6, |
213 | base : 24; | 219 | base : 24; |