projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a9d8bd
)
Btrfs: do delay iput in sync_fs
author
Josef Bacik
<jbacik@fusionio.com>
Thu, 16 May 2013 15:14:33 +0000
(11:14 -0400)
committer
Josef Bacik
<jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:52 +0000
(11:29 -0400)
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>
fs/btrfs/super.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/super.c
b/fs/btrfs/super.c
index
41d81be
..
14d2be0
100644
(file)
--- 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)) {