]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r284127:
authormarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 21 Jun 2015 00:36:02 +0000 (00:36 +0000)
committermarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 21 Jun 2015 00:36:02 +0000 (00:36 +0000)
commitc36d93b228d901318d8162ac0b0eff3d1517e8ba
treef7af9e7a2bba52068b518c8141057552d0d1a1dc
parentb1d1ce7692867de9a15c93793c1e2f800307fd83
MFC r284127:
witness: don't warn about matrix inconsistencies without holding the mutex

Lock order checking is done without the witness mutex held, so multiple
threads that are racing to establish a new lock order may read matrix
entries that are in an inconsistent state. Don't print a warning in this
case, but instead just redo the check after taking the witness lock.

git-svn-id: svn://svn.freebsd.org/base/stable/10@284653 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/subr_witness.c