From: Trond Myklebust Date: Mon, 20 Mar 2006 18:44:04 +0000 (-0500) Subject: NFS: Avoid races between writebacks and truncation X-Git-Tag: v2.6.17-rc1~667^2~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd52ed35535ef443f08bf5cd3331d350272885b8;p=pandora-kernel.git NFS: Avoid races between writebacks and truncation Currently, there is no serialisation between NFS asynchronous writebacks and truncation at the page level due to the fact that nfs_sync_inode() cannot lock the pages that it is about to write out. This means that it is possible to be flushing out data (and calling something like set_page_writeback()) while the page cache is busy evicting the page. Oops... Use the hooks provided in try_to_release_page() to ensure that dirty pages are always written back to storage before we evict them. Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed