summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2012-08-24 18:53:03 (GMT)
committerChris Mason <chris.mason@oracle.com>2012-08-28 20:53:40 (GMT)
commitbd7de2c9a449e26a5493d918618eb20ae60d56bd (patch)
tree939b10227537908c96bb339a1655a0c25413057b /Kconfig
parent5ee0844d6427e7338e0aba748f62b62d07ea2ed0 (diff)
downloadlinux-bd7de2c9a449e26a5493d918618eb20ae60d56bd.tar.xz
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 'Kconfig')
0 files changed, 0 insertions, 0 deletions