summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vm_pageout.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 4ac5259..d81d581 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -592,17 +592,19 @@ vm_pageout_map_deactivate_pages(map, desired)
vm_pageout_object_deactivate_pages(map, obj, desired, 0);
}
tmpe = tmpe->next;
- };
+ }
/*
* Remove all mappings if a process is swapped out, this will free page
* table pages.
*/
- if (desired == 0 && nothingwired)
+ if (desired == 0 && nothingwired) {
+ vm_page_lock_queues();
pmap_remove(vm_map_pmap(map), vm_map_min(map),
vm_map_max(map));
+ vm_page_unlock_queues();
+ }
vm_map_unlock(map);
- return;
}
#endif /* !defined(NO_SWAPPING) */
OpenPOWER on IntegriCloud