Re: [PATCH] btrfs: fix lock dep warning, move scratch dev out of device_list_mutex and uuid_mutex

2016-05-01 Thread Anand Jain
On 04/25/2016 11:09 PM, David Sterba wrote: On Mon, Apr 18, 2016 at 04:51:23PM +0800, Anand Jain wrote: When the replace target fails, the target device will be taken out of fs device list, scratch + update_dev_time and freed. However we could do the scratch + update_dev_time and free part af

Re: [PATCH] btrfs: fix lock dep warning, move scratch dev out of device_list_mutex and uuid_mutex

2016-04-25 Thread David Sterba
On Mon, Apr 18, 2016 at 04:51:23PM +0800, Anand Jain wrote: > When the replace target fails, the target device will be taken > out of fs device list, scratch + update_dev_time and freed. However > we could do the scratch + update_dev_time and free part after the > device has been taken out of devi

[PATCH] btrfs: fix lock dep warning, move scratch dev out of device_list_mutex and uuid_mutex

2016-04-18 Thread Anand Jain
When the replace target fails, the target device will be taken out of fs device list, scratch + update_dev_time and freed. However we could do the scratch + update_dev_time and free part after the device has been taken out of device list, so that we don't have to hold the device_list_mutex and uui