login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
26
Re: [PATCH] do_generic_file_read: clear page errors when issuing a fresh read of the page
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Larry Woodman
Subject:
Re: [PATCH] do_generic_file_read: clear page errors when issuing a fresh read of the page
Date: Wednesday, May 26, 2010 - 9:02 am
On Wed, 2010-05-26 at 11:49 -0400, Rik van Riel wrote:
quoted text
> From: Jeff Moyer <jmoyer@redhat.com> > > I/O errors can happen due to temporary failures, like multipath > errors or losing network contact with the iSCSI server. Because > of that, the VM will retry readpage on the page. > > However, do_generic_file_read does not clear PG_error. This > causes the system to be unable to actually use the data in the > page cache page, even if the subsequent readpage completes > successfully! > > The function filemap_fault has had a ClearPageError before > readpage forever. This patch simply adds the same to > do_generic_file_read. > > Signed-off-by: Rik van Riel <riel@redhat.com> > Signed-off-by: Jeff Moyer <jmoyer@redhat.com> > --- > mm/filemap.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > Index: linux-2.6.34/mm/filemap.c > =================================================================== > --- linux-2.6.34.orig/mm/filemap.c > +++ linux-2.6.34/mm/filemap.c > @@ -1106,6 +1106,12 @@ page_not_up_to_date_locked: > } > > readpage: > + /* > + * A previous I/O error may have been due to temporary > + * failures, eg. multipath errors. > + * PG_error will be set again if readpage fails. > + */ > + ClearPageError(page); > /* Start the actual read. The read will unlock the page. */ > error = mapping->a_ops->readpage(filp, page); >
Acked-by: Larry Woodman <lwoodman@redhat.com> --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] do_generic_file_read: clear page errors when issui ...
, Rik van Riel
, (Wed May 26, 8:49 am)
Re: [PATCH] do_generic_file_read: clear page errors when i ...
, Larry Woodman
, (Wed May 26, 9:02 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
jimmy bahuleyan
Re: how about mutual compatibility between Linux's GPLv2 and GPLv3?
Andrew Morton
Re: 2.6.26-rc2-mm1
James Bottomley
Re: INITIO scsi driver fails to work properly
Kamalesh Babulal
Re: [BUG] 2.6.25-rc5-mm1 kernel panic with "Exception: 501 " on powerpc
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
[ARM] move include/asm-arm to arch/arm/include/asm
Linux Kernel Mailing List
FS-Cache: Implement the cookie management part of the netfs API
Linux Kernel Mailing List
x86: remove subarchitecture support
git
:
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Santi Béjar
Re: How to use git-fmt-merge-msg?
Johannes Sixt
Re: Trying to use git-filter-branch to compress history by removing large, obsol...
Nicolas Pitre
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle
Junio C Hamano
Re: [PATCH 1/2] Teach git-describe to display distances from tags.
freebsd-current
:
Michael Moll
Re: Unable to boot on ECS K7S5A
FreeBSD Tinderbox
[head tinderbox] failure on ia64/ia64
Jack Vogel
RFC: Capability addition for IEEE 1588
Julian Elischer
oh-oh .. 128 processors..
Stefan Lambrev
rtfree: 0xc741ee88 has 1 refs
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
jamal
RE: [PATCH 1/4] [NET_SCHED] explict hold dev tx lock
Patrick Ohly
[RFC PATCH 04/13] net: implement generic SOF_TIMESTAMPING_TX_* support
Ben Hutchings
[PATCH 11/11] sfc: Replace stats_enabled flag with a disable count
Jesse Barnes
Re: [PATCH] pci: fix kexec with power state D3
Colocation donated by:
Syndicate