NFS: Close page_mkwrite() races
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 24 Apr 2009 21:32:22 +0000 (17:32 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 3 May 2009 02:42:39 +0000 (19:42 -0700)
commit7fdf523067666b0eaff330f362401ee50ce187c4
tree83088db2c3e9b61fd08bdcd0bbba5ace5a35b943
parentb4348f32dae3cb6eb4bc21c7ed8f76c0b11e9d6a
NFS: Close page_mkwrite() races

Follow up to Nick Piggin's patches to ensure that nfs_vm_page_mkwrite
returns with the page lock held, and sets the VM_FAULT_LOCKED flag.

See http://bugzilla.kernel.org/show_bug.cgi?id=12913

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfs/file.c