* [PATCH 2.4.22] PG_error is not cleared after I/O errors
@ 2003-11-21 17:38 Jeff Moyer
0 siblings, 0 replies; only message in thread
From: Jeff Moyer @ 2003-11-21 17:38 UTC (permalink / raw)
To: linux-kernel
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
--- linux-2.4.22/mm/filemap.c.orig 2003-11-21 12:29:26.000000000 -0500
+++ linux-2.4.22/mm/filemap.c 2003-11-21 12:30:16.000000000 -0500
@@ -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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-11-21 17:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-21 17:38 [PATCH 2.4.22] PG_error is not cleared after I/O errors Jeff Moyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®