Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37633
b: refs/heads/master
c: fd7bcea
h: refs/heads/master
i:
  37631: 072cd78
v: v3
  • Loading branch information
Jim Cromie authored and Linus Torvalds committed Oct 1, 2006
1 parent 113bf86 commit 1d855f6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce584f913870bbad8779a1130d4be48698560bf0
refs/heads/master: fd7bcea35e7efb108c34ee2b3840942a3749cadb
22 changes: 22 additions & 0 deletions trunk/Documentation/lockdep-design.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,28 @@ The validator tracks lock-class usage history into 5 separate state bits:

- 'ever used' [ == !unused ]

When locking rules are violated, these 4 state bits are presented in the
locking error messages, inside curlies. A contrived example:

modprobe/2287 is trying to acquire lock:
(&sio_locks[i].lock){--..}, at: [<c02867fd>] mutex_lock+0x21/0x24

but task is already holding lock:
(&sio_locks[i].lock){--..}, at: [<c02867fd>] mutex_lock+0x21/0x24


The bit position indicates hardirq, softirq, hardirq-read,
softirq-read respectively, and the character displayed in each
indicates:

'.' acquired while irqs enabled
'+' acquired in irq context
'-' acquired in process context with irqs disabled
'?' read-acquired both with irqs enabled and in irq context

Unused mutexes cannot be part of the cause of an error.


Single-lock state rules:
------------------------

Expand Down

0 comments on commit 1d855f6

Please sign in to comment.