summaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2012-08-24 12:53:03 -0600
committerChris Mason <chris.mason@oracle.com>2012-08-28 16:53:40 -0400
commitbd7de2c9a449e26a5493d918618eb20ae60d56bd (patch)
tree939b10227537908c96bb339a1655a0c25413057b /virt/kvm
parent5ee0844d6427e7338e0aba748f62b62d07ea2ed0 (diff)
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 <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions