patch-pre2.0.10 linux/mm/filemap.c

Next file: linux/mm/kmalloc.c
Previous file: linux/include/net/sock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.9/linux/mm/filemap.c linux/mm/filemap.c
@@ -852,10 +852,13 @@
 page_read_error:
 	/*
 	 * Umm, take care of errors if the page isn't up-to-date.
-	 * Try to re-read it _once_.
+	 * Try to re-read it _once_. We do this synchronously,
+	 * because there really aren't any performance issues here
+	 * and we need to check for errors.
 	 */
 	if (inode->i_op->readpage(inode, page) != 0)
 		goto failure;
+	wait_on_page(page);
 	if (PageError(page))
 		goto failure;
 	if (PageUptodate(page))

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this