Assert that when using an interlock mutex it is not recursed when lockmgr()

is called.

Ok'd by: jhb
This commit is contained in:
Alfred Perlstein 2001-04-20 22:38:40 +00:00
parent 38bb635d3d
commit 98689e1e70
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75740

View File

@ -237,8 +237,10 @@ debuglockmgr(lkp, flags, interlkp, p, name, file, line)
pid = p->p_pid;
mtx_lock(lkp->lk_interlock);
if (flags & LK_INTERLOCK)
if (flags & LK_INTERLOCK) {
mtx_unlock(interlkp);
mtx_assert(interlkp, MA_NOTOWNED);
}
extflags = (flags | lkp->lk_flags) & LK_EXTFLG_MASK;