From: Jan Kara Date: Tue, 24 Aug 2010 12:28:03 +0000 (+0200) Subject: ocfs2: Fix deadlock when allocating page X-Git-Tag: v2.6.36-rc4~68^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b4c0ff32ccd87ab52d4c5bd0a0536febce11370;p=pandora-kernel.git ocfs2: Fix deadlock when allocating page We cannot call grab_cache_page() when holding filesystem locks or with a transaction started as grab_cache_page() calls page allocation with GFP_KERNEL flag and thus page reclaim can recurse back into the filesystem causing deadlocks or various assertion failures. We have to use find_or_create_page() instead and pass it GFP_NOFS as we do with other allocations. Acked-by: Mark Fasheh Signed-off-by: Jan Kara Signed-off-by: Tao Ma --- Reading git-diff-tree failed