summaryrefslogtreecommitdiff
path: root/ioops.c
diff options
context:
space:
mode:
Diffstat (limited to 'ioops.c')
0 files changed, 0 insertions, 0 deletions
9db90b6fd750db (diff)
Btrfs: fix unprotected assignment of the left cursor for device replace
We were assigning new values to fields of the device replace object without holding the respective lock after processing each device extent. This is important for the left cursor field which can be accessed by a concurrent task running __btrfs_map_block (which, correctly, takes the device replace lock). So change these fields while holding the device replace lock. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Josef Bacik <jbacik@fb.com>
Diffstat