]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
vfs: __read_cache_page should use gfp argument rather than GFP_KERNEL
authorDave Kleikamp <dave.kleikamp@oracle.com>
Wed, 21 Dec 2011 17:05:48 +0000 (11:05 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2012 23:38:01 +0000 (15:38 -0800)
commitf1ab682d4e723d87408f384e79496ba61c1686c1
tree95f428ca1c0147d365437d3397a71f7f614bbaa9
parentadfbc6daa5d77b68aaeb01039b74ffc857c07d8f
vfs: __read_cache_page should use gfp argument rather than GFP_KERNEL

commit e6f67b8c05f5e129e126f4409ddac6f25f58ffcb upstream.

lockdep reports a deadlock in jfs because a special inode's rw semaphore
is taken recursively.  The mapping's gfp mask is GFP_NOFS, but is not
used when __read_cache_page() calls add_to_page_cache_lru().

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Acked-by: Hugh Dickins <hughd@google.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
mm/filemap.c