Skip to contentSkip to conversation

PG_error is not cleared after I/O errors

PATCH New Jeff Moyer 1 participant 1 message Nov 21, 2003

Subsystems (2)
lore
Share & tools
lore

Jeff Moyer

author
#0 lore raw

PATCH 1/1 PG_error is not cleared after I/O errors

Hello,

Currently, if a device returns an I/O error, the PG_error bit is set in the page struct, but never cleared. This patch clears the bit when the page is not uptodate (and about to be read). You'll find the same fix in the 2.6 stream of the kernel.

Regards,

Jeff

mm/filemap.c renamed from mm/filemap.c.orig +2 -0
@@ -1491,6 +1491,8 @@
 			UnlockPage(page);
 			goto page_ok;
 		}
+		/* Clear any stale I/O errors */
+		ClearPageError(page);
 
 readpage:
 		/* ... and start the actual read. The read will unlock the page. */