From: Dave Chinner Date: Thu, 23 Dec 2010 00:57:37 +0000 (+1100) Subject: xfs: use KM_NOFS for allocations during attribute list operations X-Git-Tag: v2.6.38-rc1~44^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=622d81494fa32343a4b97b607619656c7a4a6d1a;p=pandora-kernel.git xfs: use KM_NOFS for allocations during attribute list operations When listing attributes, we are doiing memory allocations under the inode ilock using only KM_SLEEP. This allows memory allocation to recurse back into the filesystem and do writeback, which may the ilock we already hold on the current inode. THis will deadlock. Hence use KM_NOFS for such allocations outside of transaction context to ensure that reclaim recursion does not occur. Reported-by: Nick Piggin Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig --- Reading git-diff-tree failed