]> git.hungrycats.org Git - linux/commit
[PATCH] invalidate page race fix
authorJens Axboe <axboe@suse.de>
Mon, 18 Oct 2004 15:56:50 +0000 (08:56 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 18 Oct 2004 15:56:50 +0000 (08:56 -0700)
commit9ee4f026a1a053c522f93982793d0e29d7db6a1f
tree8eb16ea0c6eb4a2875b45927a054052a619bb46c
parent524396e721dc1a74d0f9f8e6e6667ad6f7dc6ff5
[PATCH] invalidate page race fix

invalidate_inode_pages() and invalidate_inode_pages2() can mark pages not
uptodate while read() is trying to read from them.  This is interpreted as
an I/O error.

Fix that by teaching the invalidate code to leave the page alone if someone
else has a ref on it.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/truncate.c