Increase the scope of the page queues lock in vm_page_alloc() to cover
a diagnostic check that accesses the cache queue count.
This commit is contained in:
parent
6c29a22f1f
commit
790bdd0f2e
@ -784,11 +784,11 @@ vm_page_alloc(vm_object_t object, vm_pindex_t pindex, int req)
|
||||
*/
|
||||
vm_page_lock_queues();
|
||||
if ((m = vm_page_select_cache(color)) == NULL) {
|
||||
vm_page_unlock_queues();
|
||||
#if defined(DIAGNOSTIC)
|
||||
if (cnt.v_cache_count > 0)
|
||||
printf("vm_page_alloc(NORMAL): missing pages on cache queue: %d\n", cnt.v_cache_count);
|
||||
#endif
|
||||
vm_page_unlock_queues();
|
||||
atomic_add_int(&vm_pageout_deficit, 1);
|
||||
pagedaemon_wakeup();
|
||||
return (NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user