Allow kmem_malloc() without Giant if M_NOWAIT is specified.

This commit is contained in:
Alan Cox 2003-01-04 19:26:35 +00:00
parent 4dbeceee96
commit 469c4ba59e

View File

@ -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);