diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index 81ca681e0b66..9a1ac634b7cf 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -261,9 +261,6 @@ kmem_suballoc(vm_map_t parent, vm_offset_t *min, vm_offset_t *max, * We don't worry about expanding the map (adding entries) since entries * for wired maps are statically allocated. * - * NOTE: This routine is not supposed to block if M_NOWAIT is set, but - * I have not verified that it actually does not block. - * * `map' is ONLY allowed to be kmem_map or one of the mbuf submaps to * which we never free. */ @@ -315,15 +312,6 @@ kmem_malloc(map, size, flags) vm_map_insert(map, kmem_object, offset, addr, addr + size, VM_PROT_ALL, VM_PROT_ALL, 0); - /* - * Note: if M_NOWAIT specified alone, allocate from - * interrupt-safe queues only (just the free list). If - * 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. - */ - if ((flags & (M_NOWAIT|M_USE_RESERVE)) == M_NOWAIT) pflags = VM_ALLOC_INTERRUPT | VM_ALLOC_WIRED; else