From: Christoph Hellwig Date: Fri, 8 Jul 2011 12:34:42 +0000 (+0200) Subject: xfs: fix filesystsem freeze race in xfs_trans_alloc X-Git-Tag: v3.1-rc1~322^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a249cf83da1813cfa71cfe1e265b40045eceb47;p=pandora-kernel.git xfs: fix filesystsem freeze race in xfs_trans_alloc As pointed out by Jan xfs_trans_alloc can race with a concurrent filesystem freeze when it sleeps during the memory allocation. Fix this by moving the wait_for_freeze call after the memory allocation. This means moving the freeze into the low-level _xfs_trans_alloc helper, which thus grows a new argument. Also fix up some comments in that area while at it. Signed-off-by: Christoph Hellwig Reviewed-by: Alex Elder Reviewed-by: Dave Chinner --- Reading git-diff-tree failed