diff options
author | Josef Bacik | 2013-05-16 11:14:33 -0400 |
---|---|---|
committer | Josef Bacik | 2013-06-14 11:29:52 -0400 |
commit | c73e293678fc3ec8ee9e5e275ee77dec98c4f2f1 (patch) | |
tree | a5ce0bbc6f42e9acbb46bdd516bf27297cdb230d /fs | |
parent | 4a9d8bdee368de78ace8b36da4eb2186afea162d (diff) |
Btrfs: do delay iput in sync_fs
We get lock inversion with umount if we allow iputs from sync_fs, so use the
delay iput flag to keep this from happening. Thanks,
Reported-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 41d81bee583d..14d2be03f95a 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -862,7 +862,7 @@ int btrfs_sync_fs(struct super_block *sb, int wait) return 0; } - btrfs_wait_all_ordered_extents(fs_info, 0); + btrfs_wait_all_ordered_extents(fs_info, 1); trans = btrfs_attach_transaction_barrier(root); if (IS_ERR(trans)) { |