From: Nikita Danilov Date: Wed, 9 Aug 2006 17:53:47 +0000 (-0400) Subject: NFS: Fix a potential deadlock in nfs_release_page X-Git-Tag: v2.6.18-rc5~58^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddeff520f02b92128132c282c350fa72afffb84a;p=pandora-kernel.git NFS: Fix a potential deadlock in nfs_release_page nfs_wb_page() waits on request completion and, as a result, is not safe to be called from nfs_release_page() invoked by VM scanner as part of GFP_NOFS allocation. Fix possible deadlock by analyzing gfp mask and refusing to release page if __GFP_FS is not set. Signed-off-by: Nikita Danilov Signed-off-by: Trond Myklebust (cherry picked from 374d969debfb290bafcb41d28918dc6f7e43ce31 commit) --- Reading git-diff-tree failed