mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
swap_pager: Ensure that swapoff puts swapped-in pages in page queues
Readahead/behind pages are handled by the swap pager, but the get_pages caller is responsible for putting fetched pages into queues (or wiring them beforehand). Note that the VM object lock prevents the newly queued page from being immediately reclaimed in the window before it is marked dirty by swap_pager_swapoff_object(). Reported by: pho Tested by: pho Reviewed by: dougm, alc, kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D47526 (cherry picked from commit d11d407aee4835fd50811a5980125bb46748fa0b)
This commit is contained in:
parent
ee0c917eeb
commit
34182e597b
1 changed files with 1 additions and 0 deletions
|
|
@ -1895,6 +1895,7 @@ swap_pager_swapoff_object(struct swdevt *sp, vm_object_t object)
|
|||
__func__, rv);
|
||||
VM_OBJECT_WLOCK(object);
|
||||
vm_object_pip_wakeupn(object, 1);
|
||||
vm_page_deactivate_noreuse(m);
|
||||
vm_page_xunbusy(m);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue