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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 22 Dec 2011 01:02:46 +0000 (17:02 -0800)
commite6f67b8c05f5e129e126f4409ddac6f25f58ffcb
tree4df809de3016d2e84467bded094c192adaf5218a
parent7b21a202b87b7f18587bd15ee6bdb477fed0fb43
vfs: __read_cache_page should use gfp argument rather than GFP_KERNEL

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>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/filemap.c