svn commit: r324618 - stable/11/sys/kern
Mark Johnston
markj at FreeBSD.org
Sat Oct 14 17:51:27 UTC 2017
Author: markj
Date: Sat Oct 14 17:51:25 2017
New Revision: 324618
URL: https://svnweb.freebsd.org/changeset/base/324618
Log:
MFC r324146:
Have uiomove_object_page() keep accessed pages in the active queue.
Modified:
stable/11/sys/kern/uipc_shm.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/kern/uipc_shm.c
==============================================================================
--- stable/11/sys/kern/uipc_shm.c Sat Oct 14 16:49:39 2017 (r324617)
+++ stable/11/sys/kern/uipc_shm.c Sat Oct 14 17:51:25 2017 (r324618)
@@ -203,12 +203,10 @@ uiomove_object_page(vm_object_t obj, size_t len, struc
}
vm_page_lock(m);
vm_page_hold(m);
- if (m->queue == PQ_NONE) {
- vm_page_deactivate(m);
- } else {
- /* Requeue to maintain LRU ordering. */
- vm_page_requeue(m);
- }
+ if (m->queue != PQ_ACTIVE)
+ vm_page_activate(m);
+ else
+ vm_page_reference(m);
vm_page_unlock(m);
VM_OBJECT_WUNLOCK(obj);
error = uiomove_fromphys(&m, offset, tlen, uio);
More information about the svn-src-all
mailing list