Add an INVARIENTS only check to make sure Giant is held if mbuf

allocation is attempted with M_TRYWAIT.

Reviewed by:	bmilekic
Approved by:	re (scottl)
This commit is contained in:
dwmalone 2003-05-29 18:38:24 +00:00
parent a02706ac93
commit 2220e22eed

View File

@ -629,6 +629,8 @@ mb_alloc(struct mb_lstmngr *mb_list, int how, short type, short persist,
how = M_TRYWAIT;
}
}
if ((flags & M_DONTWAIT) == 0)
GIANT_REQUIRED;
#endif
m = NULL;