diff options
author | Filipe Manana <fdmanana@suse.com> | 2016-05-14 16:32:35 +0100 |
---|---|---|
committer | Filipe Manana <fdmanana@suse.com> | 2016-05-30 12:58:23 +0100 |
commit | 81e87a736c5581e83f52dc054b368993ec7f16d7 (patch) | |
tree | 35fdb32b543fa5e2d3a50d51875e9c2ade2a99a4 /net/nfc | |
parent | f0e9b7d6401959816599191d1d9db90b6fd750db (diff) | |
download | linux-81e87a736c5581e83f52dc054b368993ec7f16d7.tar.bz2 |
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 (limited to 'net/nfc')
0 files changed, 0 insertions, 0 deletions