From: Dave Chinner Date: Thu, 27 May 2010 01:58:13 +0000 (+0000) Subject: xfs: fix might_sleep() warning when initialising per-ag tree X-Git-Tag: v2.6.35-rc2~3^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b98b6f3e1534bba2efcd5b16318945cf2218d99;p=pandora-kernel.git xfs: fix might_sleep() warning when initialising per-ag tree The use of radix_tree_preload() only works if the radix tree was initialised without the __GFP_WAIT flag. The per-ag tree uses GFP_NOFS, so does not trigger allocation of new tree nodes from the preloaded array. Hence it enters the allocator with a spinlock held and triggers the might_sleep() warnings. Reported-by; Chris Mason Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Alex Elder --- Reading git-diff-tree failed