The lock_chain struct definition has outdated comment, update it and add struct member description.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -203,11 +203,17 @@ struct lock_list { · 202 unmodified lines | ||
| 203 | 203 | struct lock_list *parent; |
| 204 | 204 | }; |
| 205 | 205 | |
| 206 | −/* | |
| 207 | − * We record lock dependency chains, so that we can cache them: | |
| 206 | +/** | |
| 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 | 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 | 217 | unsigned int irq_context : 2, |
| 212 | 218 | depth : 6, |
| 213 | 219 | base : 24; |