From: Josef Bacik Date: Fri, 24 Aug 2012 18:53:03 +0000 (-0600) Subject: Btrfs: fix deadlock with freeze and sync V2 X-Git-Tag: v3.6-rc4~6^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd7de2c9a449e26a5493d918618eb20ae60d56bd;p=pandora-kernel.git Btrfs: fix deadlock with freeze and sync V2 We can deadlock with freeze right now because we unconditionally start a transaction in our ->sync_fs() call. To fix this just check and see if we have a running transaction to commit. This saves us from the deadlock because at this point we'll have the umount sem for the sb so we're safe from freezes coming in after we've done our check. With this patch the freeze xfstests no longer deadlocks. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed