Author: kib
Date: Wed Nov 24 12:25:17 2010
New Revision: 215796
URL: http://svn.freebsd.org/changeset/base/215796
Log:
After the sleep caused by encountering a busy page, relookup the page.
Submitted and reviewed by: alc
Reprted and tested by: pho
MFC after: 5 days
Modified:
head/sys/vm/vm_object.c
Modified: head/sys/vm/vm_object.c
==============================================================================
--- head/sys/vm/vm_object.c Wed Nov 24 09:36:36 2010 (r215795)
+++ head/sys/vm/vm_object.c Wed Nov 24 12:25:17 2010 (r215796)
@@ -821,9 +821,11 @@ rescan:
np = TAILQ_NEXT(p, listq);
if (p->valid == 0)
continue;
- while (vm_page_sleep_if_busy(p, TRUE, "vpcwai")) {
+ if (vm_page_sleep_if_busy(p, TRUE, "vpcwai")) {
if (object->generation != curgeneration)
goto rescan;
+ np = vm_page_find_least(object, pi);
+ continue;
}
vm_page_test_dirty(p);
if (p->dirty == 0)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"