From 17d89a1f67f8fab87b1687046b31a63f65742e92 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 26 Jul 2003 21:48:46 +0000 Subject: [PATCH] Acquire Giant rather than asserting it is held in contigmalloc(). This is a prerequisite to removing further uses of Giant from UMA. --- sys/vm/vm_contig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/vm/vm_contig.c b/sys/vm/vm_contig.c index 25d9a3a91c4..f26a8d1c913 100644 --- a/sys/vm/vm_contig.c +++ b/sys/vm/vm_contig.c @@ -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); }