summaryrefslogtreecommitdiffstats
path: root/block/Makefile
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2019-05-14 13:54:41 +0300
committerDavid Sterba <dsterba@suse.com>2019-07-01 13:34:54 +0200
commite1e0eb43ce1fd7bbdd9590715623cb3799896434 (patch)
tree95ada1ff7ea829e189ae386955b9acdc392db0a9 /block/Makefile
parent419684b2c217d2eba6a4a4cf0548c346be7879d7 (diff)
downloadlinux-e1e0eb43ce1fd7bbdd9590715623cb3799896434.tar.gz
linux-e1e0eb43ce1fd7bbdd9590715623cb3799896434.tar.bz2
linux-e1e0eb43ce1fd7bbdd9590715623cb3799896434.zip
btrfs: Ensure btrfs_init_dev_replace_tgtdev sees up to date values
btrfs_init_dev_replace_tgtdev reads certain values from the source device (such as commit_total_bytes) which are updated during transaction commit. Currently this function is called before committing any pending transaction, leading to possibly reading outdated values. Fix this by moving the function below the transaction commit, at this point the EXCL_OP bit it set hence once transaction is complete the total size of the device cannot be changed (it's usually changed by resize/remove ops which are blocked). Fixes: 9e271ae27e44 ("Btrfs: kernel operation should come after user input has been verified") Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'block/Makefile')
0 files changed, 0 insertions, 0 deletions