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

it.

Requested by: jhb
This commit is contained in:
Alfred Perlstein 2001-05-22 00:58:20 +00:00
parent 4edf4a58e6
commit a4d22b8035

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);