Date: Thu, 18 Nov 2010 21:09:02 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/vm vm_contig.c vm_object.c vm_pageout.c vm_pageout.h Message-ID: <201011182109.oAIL9Mwn002315@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2010-11-18 21:09:02 UTC FreeBSD src repository Modified files: sys/vm vm_contig.c vm_object.c vm_pageout.c vm_pageout.h Log: SVN rev 215471 on 2010-11-18 21:09:02Z by kib vm_pageout_flush() might cache the pages that finished write to the backing storage. Such pages might be then reused, racing with the assert in vm_object_page_collect_flush() that verified that dirty pages from the run (most likely, pages with VM_PAGER_AGAIN status) are write-protected still. In fact, the page indexes for the pages that were removed from the object page list should be ignored by vm_object_page_clean(). Return the length of successfully written run from vm_pageout_flush(), that is, the count of pages between requested page and first page after requested with status VM_PAGER_AGAIN. Supply the requested page index in the array to vm_pageout_flush(). Use the returned run length to forward the index of next page to clean in vm_object_page_clean(). Reported by: avg Reviewed by: alc MFC after: 1 week Revision Changes Path 1.84 +1 -1 src/sys/vm/vm_contig.c 1.428 +2 -23 src/sys/vm/vm_object.c 1.331 +11 -3 src/sys/vm/vm_pageout.c 1.46 +1 -1 src/sys/vm/vm_pageout.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011182109.oAIL9Mwn002315>