diff options
Diffstat (limited to 'sys/vm/swap_pager.c')
-rw-r--r-- | sys/vm/swap_pager.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 614fd48..7dc703c 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -1053,6 +1053,7 @@ swap_pager_getpages(object, m, count, reqpage) * free pages outside our collection range. Note: we never free * mreq, it must remain busy throughout. */ + vm_page_lock_queues(); { int k; @@ -1061,6 +1062,7 @@ swap_pager_getpages(object, m, count, reqpage) for (k = j; k < count; ++k) vm_page_free(m[k]); } + vm_page_unlock_queues(); splx(s); |