From: Christoph Hellwig Date: Mon, 19 Oct 2009 04:00:03 +0000 (+0000) Subject: xfs: I/O completion handlers must use NOFS allocations X-Git-Tag: v2.6.33-rc1~312^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80641dc66a2d6dfb22af4413227a92b8ab84c7bb;p=pandora-kernel.git xfs: I/O completion handlers must use NOFS allocations When completing I/O requests we must not allow the memory allocator to recurse into the filesystem, as we might deadlock on waiting for the I/O completion otherwise. The only thing currently allocating normal GFP_KERNEL memory is the allocation of the transaction structure for the unwritten extent conversion. Add a memflags argument to _xfs_trans_alloc to allow controlling the allocator behaviour. Signed-off-by: Christoph Hellwig Reported-by: Thomas Neumann Tested-by: Thomas Neumann Reviewed-by: Alex Elder Signed-off-by: Alex Elder --- Reading git-diff-tree failed