mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 13:58:30 -04:00
- Add a WITNESS_SLEEP() for the appropriate cases in lockmgr().
This commit is contained in:
parent
77d79f0c60
commit
5e8feb5bed
1 changed files with 7 additions and 0 deletions
|
|
@ -232,6 +232,13 @@ debuglockmgr(lkp, flags, interlkp, td, name, file, line)
|
|||
else
|
||||
thr = td;
|
||||
|
||||
if ((flags & (LK_NOWAIT|LK_RELEASE)) == 0) {
|
||||
if ((flags & LK_INTERLOCK) == 0)
|
||||
WITNESS_SLEEP(1, NULL);
|
||||
else
|
||||
WITNESS_SLEEP(1, &interlkp->mtx_object);
|
||||
}
|
||||
|
||||
mtx_lock(lkp->lk_interlock);
|
||||
if (flags & LK_INTERLOCK) {
|
||||
mtx_assert(interlkp, MA_OWNED | MA_NOTRECURSED);
|
||||
|
|
|
|||
Loading…
Reference in a new issue