Do not mention VM_ALLOC_RETRY in comment, and normalize the terminology
(blocking -> sleeping). Reviewed by: alc MFC after: 3 days
This commit is contained in:
parent
1d9e77f6bf
commit
83d5d2963e
@ -537,8 +537,8 @@ agp_generic_bind_memory(device_t dev, struct agp_memory *mem,
|
||||
|
||||
/*
|
||||
* Allocate the pages early, before acquiring the lock,
|
||||
* because vm_page_grab() used with VM_ALLOC_RETRY may
|
||||
* block and we can't hold a mutex while blocking.
|
||||
* because vm_page_grab() may sleep and we can't hold a mutex
|
||||
* while sleeping.
|
||||
*/
|
||||
VM_OBJECT_LOCK(mem->am_obj);
|
||||
for (i = 0; i < mem->am_size; i += PAGE_SIZE) {
|
||||
|
Loading…
Reference in New Issue
Block a user