Remove KASSERT test for sleeping on mv_mtx, instead let WITNESS catch
it. Requested by: jhb
This commit is contained in:
parent
4edf4a58e6
commit
a4d22b8035
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user