diff options
| author | Miklos Szeredi <[email protected]> | 2008-05-14 23:05:37 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-05-15 02:11:13 +0000 |
| commit | 3ef0f720e47e895b613b0305eb0a483e3ec11f23 (patch) | |
| tree | e696a950d76c90199661515e1068fc00102a15bf /fs/jbd/commit.c | |
| parent | pnp: add ISAPnP MPU option quirks (diff) | |
| download | kernel-3ef0f720e47e895b613b0305eb0a483e3ec11f23.tar.gz kernel-3ef0f720e47e895b613b0305eb0a483e3ec11f23.zip | |
mm: fix infinite loop in filemap_fault
filemap_fault will go into an infinite loop if ->readpage() fails
asynchronously.
AFAICS the bug was introduced by this commit, which removed the wait after the
final readpage:
commit d00806b183152af6d24f46f0c33f14162ca1262a
Author: Nick Piggin <[email protected]>
Date: Thu Jul 19 01:46:57 2007 -0700
mm: fix fault vs invalidate race for linear mappings
Fix by reintroducing the wait_on_page_locked() after ->readpage() to make sure
the page is up-to-date before jumping back to the beginning of the function.
I've noticed this while testing nfs exporting on fuse. The patch
fixes it.
Signed-off-by: Miklos Szeredi <[email protected]>
Cc: Nick Piggin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions
