aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2014-11-06 15:19:54 +0000
committerChris Mason <[email protected]>2014-11-21 01:20:10 +0000
commit9dba8cf128ef98257ca719722280c9634e7e9dc7 (patch)
treec8ad17c372a4a8c8f8fdfd49c27cf93ab473fbbc /fs/btrfs/dev-replace.c
parentbtrfs: fix wrong accounting of raid1 data profile in statfs (diff)
downloadkernel-9dba8cf128ef98257ca719722280c9634e7e9dc7.tar.gz
kernel-9dba8cf128ef98257ca719722280c9634e7e9dc7.zip
Btrfs: make sure we wait on logged extents when fsycning two subvols
If we have two fsync()'s race on different subvols one will do all of its work to get into the log_tree, wait on it's outstanding IO, and then allow the log_tree to finish it's commit. The problem is we were just free'ing that subvols logged extents instead of waiting on them, so whoever lost the race wouldn't really have their data on disk. Fix this by waiting properly instead of freeing the logged extents. Thanks, cc: [email protected] Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions