Skip to content
Commit eb14ab8e authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: fix page->private races



There is a race where btrfs_releasepage can drop the
page->private contents just as alloc_extent_buffer is setting
up pages for metadata.  Because of how the Btrfs page flags work,
this results in us skipping the crc on the page during IO.

This patch sovles the race by waiting until after the extent buffer
is inserted into the radix tree before it sets page private.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 3a90983d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment