diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-11-01 08:33:14 +0100 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2012-12-12 23:15:21 +0100 |
commit | ca46963718ef7368c84267c9f5e7394c3890442a (patch) | |
tree | a6799d2d2f1b624bca121c0bd3d019d6794bdc03 /fs/btrfs/tree-log.c | |
parent | Btrfs: fix joining the same transaction handler more than 2 times (diff) | |
download | linux-ca46963718ef7368c84267c9f5e7394c3890442a.tar.xz linux-ca46963718ef7368c84267c9f5e7394c3890442a.zip |
Btrfs: fix missing flush when committing a transaction
Consider the following case:
Task1 Task2
start_transaction
commit_transaction
check pending snapshots list and the
list is empty.
add pending snapshot into list
skip the delalloc flush
end_transaction
...
And then the problem that the snapshot is different with the source subvolume
happen.
This patch fixes the above problem by flush all pending stuffs when all the
other tasks end the transaction.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions