summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_kern.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-01-04 19:26:35 +0000
committeralc <alc@FreeBSD.org>2003-01-04 19:26:35 +0000
commit6412b92ef7a10e811f478739afe299ba4d55a770 (patch)
tree0b40c2675b561925b5b5ee3e327cba7fbe56efaa /sys/vm/vm_kern.c
parentd34fb3af16f05d9cb5890ebea64c54a5641406d1 (diff)
downloadFreeBSD-src-6412b92ef7a10e811f478739afe299ba4d55a770.zip
FreeBSD-src-6412b92ef7a10e811f478739afe299ba4d55a770.tar.gz
Allow kmem_malloc() without Giant if M_NOWAIT is specified.
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r--sys/vm/vm_kern.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index 23ba0d2..16686c9 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -311,7 +311,8 @@ kmem_malloc(map, size, flags)
vm_page_t m;
int pflags;
- GIANT_REQUIRED;
+ if ((flags & M_NOWAIT) == 0)
+ GIANT_REQUIRED;
size = round_page(size);
addr = vm_map_min(map);
OpenPOWER on IntegriCloud