On Sat, 29 Apr 2000, Art Boulatov wrote:
>Yes, I've also noticed that swapon takes a much longer time with pre6.
here the fix against pre6:
--- 2.3.99-pre6-VM/mm/page_io.c.~1~ Wed Dec 8 00:05:28 1999
+++ 2.3.99-pre6-VM/mm/page_io.c Sat Apr 29 18:59:29 2000
@@ -132,6 +132,11 @@
PAGE_BUG(page);
if (PageSwapCache(page))
PAGE_BUG(page);
+ if (page->mapping)
+ PAGE_BUG(page);
+ /* needs sync_page to wait I/O completation */
+ page->mapping = &swapper_space;
if (!rw_swap_page_base(rw, entry, page, wait))
UnlockPage(page);
+ page->mapping = NULL;
}
Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:17 EST