Skip to content
Commit cd52ed35 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent b92dccf6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment