提交 e5684bbf 编写于 作者: J Juri Lelli 提交者: Ingo Molnar

Documentation/locking/lockdep: Update info about states

Commit:

  d92a8cfc ("locking/lockdep: Rework FS_RECLAIM annotation")

removed the 'reclaim_fs' lockdep STATE.

Reflect the change in the documentation.

While we are at it, also clarify the formula to calculate the number of state bits.
Signed-off-by: NJuri Lelli <juri.lelli@redhat.com>
Acked-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-doc@vger.kernel.org
Link: http://lkml.kernel.org/r/20180213185519.18186-2-juri.lelli@redhat.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
上级 7246a966
...@@ -27,7 +27,8 @@ lock-class. ...@@ -27,7 +27,8 @@ lock-class.
State State
----- -----
The validator tracks lock-class usage history into 4n + 1 separate state bits: The validator tracks lock-class usage history into 4 * nSTATEs + 1 separate
state bits:
- 'ever held in STATE context' - 'ever held in STATE context'
- 'ever held as readlock in STATE context' - 'ever held as readlock in STATE context'
...@@ -37,7 +38,6 @@ The validator tracks lock-class usage history into 4n + 1 separate state bits: ...@@ -37,7 +38,6 @@ The validator tracks lock-class usage history into 4n + 1 separate state bits:
Where STATE can be either one of (kernel/locking/lockdep_states.h) Where STATE can be either one of (kernel/locking/lockdep_states.h)
- hardirq - hardirq
- softirq - softirq
- reclaim_fs
- 'ever used' [ == !unused ] - 'ever used' [ == !unused ]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册