mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Potential fix to filemap_fault()
@ 2008-07-31 11:04 Steven Whitehouse
  2008-07-31 12:12 ` Nick Piggin
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Whitehouse @ 2008-07-31 11:04 UTC (permalink / raw)
  To: Nick Piggin; +Cc: linux-kernel

Hi,

We've spotted (with our cluster coherency tests) a couple of issues in
the current page fault path. One of those is fixed by the below patch,
so I'd like to know if anybody can spot any unwanted side effects if we
make this change. The patch prevents us from seeing bus errors when
accessing what should be valid data within a file. This can currently
happen when there is a race between invalidation and the page fault
path.

After applying this patch, we still see one remaining issue, which I
think is related to page_mkwrite but we've not finally tracked that one
down yet. The symptoms of the remaining issue are that we see a blank
page from time to time, when we should be seeing valid data.

Steve.

diff --git a/mm/filemap.c b/mm/filemap.c
index 42bbc69..9441759 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1563,7 +1563,7 @@ page_not_uptodate:
 	error = mapping->a_ops->readpage(file, page);
 	if (!error) {
 		wait_on_page_locked(page);
-		if (!PageUptodate(page))
+		if (PageError(page))
 			error = -EIO;
 	}
 	page_cache_release(page);



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-31 12:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-31 11:04 Potential fix to filemap_fault() Steven Whitehouse
2008-07-31 12:12 ` Nick Piggin

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®