Remove KASSERT test for sleeping on mv_mtx, instead let WITNESS catch

it.

Requested by: jhb
This commit is contained in:
alfred 2001-05-22 00:58:20 +00:00
parent 1dc43912c8
commit 81a30a0ee0

View File

@ -378,8 +378,6 @@ msleep(ident, mtx, priority, wmesg, timo)
int rval = 0;
WITNESS_SAVE_DECL(mtx);
KASSERT(!mtx_owned(&vm_mtx) || mtx == &vm_mtx,
("sleeping with vm_mtx held."));
#ifdef KTRACE
if (p && KTRPOINT(p, KTR_CSW))
ktrcsw(p->p_tracep, 1, 0);