From: Jeff Moyer <jmoyer@redhat.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH 2.4.22] PG_error is not cleared after I/O errors
Date: Fri, 21 Nov 2003 12:38:12 -0500 [thread overview]
Message-ID: <16318.19844.459348.435288@segfault.boston.redhat.com> (raw)
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. */
reply other threads:[~2003-11-21 17:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16318.19844.459348.435288@segfault.boston.redhat.com \
--to=jmoyer@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®