From 3cf9fcd59a78bb4ed674857a87e8276caeec2236 Mon Sep 17 00:00:00 2001 From: kib Date: Thu, 8 Jul 2010 08:37:51 +0000 Subject: Make VM_ALLOC_RETRY flag mandatory for vm_page_grab(). Assert that the flag is always provided, and unconditionally retry after sleep for the busy page or failed allocation. The intent is to remove VM_ALLOC_RETRY eventually. Proposed and reviewed by: alc --- sys/vm/vm_page.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/vm/vm_page.h') diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 0829025..62868cd 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -312,7 +312,7 @@ extern struct vpglocks vm_page_queue_lock; /* page allocation flags: */ #define VM_ALLOC_WIRED 0x0020 /* non pageable */ #define VM_ALLOC_ZERO 0x0040 /* Try to obtain a zeroed page */ -#define VM_ALLOC_RETRY 0x0080 /* vm_page_grab() only */ +#define VM_ALLOC_RETRY 0x0080 /* Mandatory with vm_page_grab() */ #define VM_ALLOC_NOOBJ 0x0100 /* No associated object */ #define VM_ALLOC_NOBUSY 0x0200 /* Do not busy the page */ #define VM_ALLOC_IFCACHED 0x0400 /* Fail if the page is not cached */ -- cgit v1.1