]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFS: Don't SIGBUS if nfs_vm_page_mkwrite races with a cache invalidation
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 4 Oct 2010 21:59:08 +0000 (17:59 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:32:21 +0000 (13:32 -0800)
commit34e1c8500cfcd5ce450322d12d4ab3b1930c407d
tree075f2c916d67cffde396b4094e3278ef932c29d3
parenta6b346485b11f4dafa0d67018aae4e703dac618a
NFS: Don't SIGBUS if nfs_vm_page_mkwrite races with a cache invalidation

commit bc4866b6e0b44f8ea0df22a16e5927714beb4983 upstream.

In the case where we lock the page, and then find out that the page has
been thrown out of the page cache, we should just return VM_FAULT_NOPAGE.
This is what block_page_mkwrite() does in these situations.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/file.c