summaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2009-09-11 18:27:37 +0200
committerChris Mason <chris.mason@oracle.com>2009-09-11 19:31:07 +0200
commita1ed835e1ab5795f91b198d08c43e2f56848dcf3 (patch)
treeac3b370823fa76c5be7698e3663306badbbd622d /fs/gfs2
parentBtrfs: Use PagePrivate2 to track pages in the data=ordered code. (diff)
downloadlinux-a1ed835e1ab5795f91b198d08c43e2f56848dcf3.tar.xz
linux-a1ed835e1ab5795f91b198d08c43e2f56848dcf3.zip
Btrfs: Fix extent replacment race
Data COW means that whenever we write to a file, we replace any old extent pointers with new ones. There was a window where a readpage might find the old extent pointers on disk and cache them in the extent_map tree in ram in the middle of a given write replacing them. Even though both the readpage and the write had their respective bytes in the file locked, the extent readpage inserts may cover more bytes than it had locked down. This commit closes the race by keeping the new extent pinned in the extent map tree until after the on-disk btree is properly setup with the new extent pointers. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/gfs2')
0 files changed, 0 insertions, 0 deletions