NFS: Prevent another deadlock in nfs_release_page()
commit7823ec3aa5ba160848974fc37a82ccf524d7ea9c
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 19 Mar 2010 17:55:17 +0000 (19 13:55 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 23:01:33 +0000 (1 16:01 -0700)
treecc29134b13332ffbe53ac0d7daee8baf76175f78
parent0a06efd61cec31c4a8b4833bb56c916a1dacb41e
NFS: Prevent another deadlock in nfs_release_page()

commit d812e575822a2b7ab1a7cadae2571505ec6ec2bd upstream.

We should not attempt to free the page if __GFP_FS is not set. Otherwise we
can deadlock as per

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

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