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:
parent
a02706ac93
commit
2220e22eed
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user