Re: [PATCH 2/8] btrfs: Reduce critical section in btrfs_init_dev_replace_tgtdev

2019-05-14 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn -- Johannes ThumshirnSUSE Labs Filesystems jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnb

[PATCH 2/8] btrfs: Reduce critical section in btrfs_init_dev_replace_tgtdev

2019-05-14 Thread Nikolay Borisov
There is no point in holding btrfs_fs_devices::device_list_mutex while initialising fields of the not-yet-published device. Instead, hold the mutex only when the newly initialised device is being published. I think holding device_list_mutex here is redundant altogether, because at this point BTRFS_