[Ocfs2-devel] [PATCH] ocfs2: Fix deadlock when allocating page

Mark Fasheh mfasheh at suse.com
Tue Aug 24 09:34:48 PDT 2010


On Tue, Aug 24, 2010 at 02:28:03PM +0200, Jan Kara wrote:
> 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.
> 
> Signed-off-by: Jan Kara <jack at suse.cz>
Acked-by: Mark Fasheh <mfasheh at suse.com>
	--Mark

--
Mark Fasheh



More information about the Ocfs2-devel mailing list