diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-08-10 06:56:12 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-08-10 06:56:12 +0000 |
| commit | 02cd7c3cf28f2055140969c8b90cb3416abe42fa (patch) | |
| tree | 503ff4a04b0a98cac4206d20dbde60e8d450b725 /sys/vm | |
| parent | c4a448100c9906e379da825c67ad2863d2c0a043 (diff) | |
Notes
Diffstat (limited to 'sys/vm')
| -rw-r--r-- | sys/vm/vm_kern.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index 96199cd6fc929..7ab7c08d783c4 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -349,14 +349,14 @@ kmem_malloc(map, size, flags) /* * Note: if M_NOWAIT specified alone, allocate from * interrupt-safe queues only (just the free list). If - * M_ASLEEP or M_USE_RESERVE is also specified, we can also + * M_USE_RESERVE is also specified, we can also * allocate from the cache. Neither of the latter two * flags may be specified from an interrupt since interrupts * are not allowed to mess with the cache queue. */ retry: m = vm_page_alloc(kmem_object, OFF_TO_IDX(offset + i), - ((flags & (M_NOWAIT|M_ASLEEP|M_USE_RESERVE)) == M_NOWAIT) ? + ((flags & (M_NOWAIT|M_USE_RESERVE)) == M_NOWAIT) ? VM_ALLOC_INTERRUPT : VM_ALLOC_SYSTEM); @@ -374,9 +374,6 @@ retry: } vm_map_delete(map, addr, addr + size); vm_map_unlock(map); - if (flags & M_ASLEEP) { - VM_AWAIT; - } goto bad; } vm_page_flag_clear(m, PG_ZERO); |
