Acquire Giant rather than asserting it is held in contigmalloc(). This is

a prerequisite to removing further uses of Giant from UMA.
This commit is contained in:
Alan Cox 2003-07-26 21:48:46 +00:00
parent fa7235b784
commit 17d89a1f67

View file

@ -286,9 +286,10 @@ contigmalloc(
{
void * ret;
GIANT_REQUIRED;
mtx_lock(&Giant);
ret = contigmalloc1(size, type, flags, low, high, alignment, boundary,
kernel_map);
mtx_unlock(&Giant);
return (ret);
}