svn commit: r207580 - head/sys/vm
Konstantin Belousov
kib at FreeBSD.org
Mon May 3 19:19:59 UTC 2010
Author: kib
Date: Mon May 3 19:19:58 2010
New Revision: 207580
URL: http://svn.freebsd.org/changeset/base/207580
Log:
Handle busy status of the page in a way expected for pager_getpage().
Flush requested page, unbusy other pages, do not clear m->busy.
Reviewed by: alc
MFC after: 1 week
Modified:
head/sys/vm/phys_pager.c
Modified: head/sys/vm/phys_pager.c
==============================================================================
--- head/sys/vm/phys_pager.c Mon May 3 18:39:40 2010 (r207579)
+++ head/sys/vm/phys_pager.c Mon May 3 19:19:58 2010 (r207580)
@@ -152,10 +152,10 @@ phys_pager_getpages(vm_object_t object,
KASSERT(m[i]->dirty == 0,
("phys_pager_getpages: dirty page %p", m[i]));
/* The requested page must remain busy, the others not. */
- if (reqpage != i) {
- m[i]->oflags &= ~VPO_BUSY;
- m[i]->busy = 0;
- }
+ if (i == reqpage)
+ vm_page_flash(m[i]);
+ else
+ vm_page_wakeup(m[i]);
}
return (VM_PAGER_OK);
}
More information about the svn-src-head
mailing list