]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:00:30 +0000 (13:00 -0800)
commit6955394aa535722a3f80f3145419a0cb0ff3d077
treea465646b294226a7271e5edf6c38275459a96c42
parent661ba2a6e4dec00635c3771b60afa04f274ef881
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