From: Josef Bacik Date: Fri, 14 Sep 2012 14:34:40 +0000 (-0400) Subject: Btrfs: fix race in sync and freeze again X-Git-Tag: v3.7-rc1~71^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60376ce4a8396bc5cd777be05b6a9bf044520f42;p=pandora-kernel.git Btrfs: fix race in sync and freeze again I screwed this up, there is a race between checking if there is a running transaction and actually starting a transaction in sync where we could race with a freezer and get ourselves into trouble. To fix this we need to make a new join type to only do the try lock on the freeze stuff. If it fails we'll return EPERM and just return from sync. This fixes a hang Liu Bo reported when running xfstest 68 in a loop. Thanks, Reported-by: Liu Bo Signed-off-by: Josef Bacik --- Reading git-diff-tree failed