diff options
author | Josef Bacik <jbacik@fusionio.com> | 2012-08-24 12:53:03 -0600 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-08-28 16:53:40 -0400 |
commit | bd7de2c9a449e26a5493d918618eb20ae60d56bd (patch) | |
tree | 939b10227537908c96bb339a1655a0c25413057b /fs/9p/fid.h | |
parent | 5ee0844d6427e7338e0aba748f62b62d07ea2ed0 (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 'fs/9p/fid.h')
0 files changed, 0 insertions, 0 deletions