lkml.org 
[lkml]   [1999]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] truncate inode page sleeps

On Fri, 25 Jun 1999, Andrea Arcangeli wrote:

> Since truncate_inode_page() can sleep if the page is under I/O, then
> shrink_mmap may recycle the page from the page cache while truncate is
> sleeping. This patch will fix the race.

this should not happen, because when we do the lock_page() we have done a
get_page() - so shrink_mmap() cannot possibly do a remove_inode_page().

if it does then it's a shrink_mmap() bug. Can you see this happen in the
original kernel tree as well?

-- mingo


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.069 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site