aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2012-09-14 13:43:01 -0400
committerChris Mason <chris.mason@fusionio.com>2012-10-04 09:39:59 -0400
commitb5bae2612af92fd8e7bcdcf7ce3e0259e8d341c9 (patch)
tree1a702f18f5f903f86a66f7a73264d153adac8dcf /fs/btrfs/disk-io.c
parentff44c6e36dc9dcc02652a1105b120bdf08cea9f7 (diff)
Btrfs: fix race when getting the eb out of page->private
We can race when checking wether PagePrivate is set on a page and we actually have an eb saved in the pages private pointer. We could have easily written out this page and released it in the time that we did the pagevec lookup and actually got around to looking at this page. So use mapping->private_lock to ensure we get a consistent view of the page->private pointer. This is inline with the alloc and releasepage paths which use private_lock when manipulating page->private. Thanks, Reported-by: David Sterba <dave@jikos.cz> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions