From: Josef Bacik Date: Wed, 9 Dec 2009 02:48:58 +0000 (-0500) Subject: ext4: wait for log to commit when umounting X-Git-Tag: v2.6.33-rc1~330^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4edac314e9ad0b21ba20ba8bc61b61f186f79e1;p=pandora-kernel.git ext4: wait for log to commit when umounting There is a potential race when a transaction is committing right when the file system is being umounting. This could reduce in a race because EXT4_SB(sb)->s_group_info could be freed in ext4_put_super before the commit code calls a callback so the mballoc code can release freed blocks in the transaction, resulting in a panic trying to access the freed s_group_info. The fix is to wait for the transaction to finish committing before we shutdown the multiblock allocator. Signed-off-by: Josef Bacik Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed