Anand Jain 9c6d173ea6 btrfs: extend locked section when adding a new device in device_list_add
Make sure the device_list_lock is held the whole time:

* when the device is being looked up
* new device is initialized and put to the list
* the list counters are updated (fs_devices::opened, fs_devices::total_devices)

Signed-off-by: Anand Jain <anand.jain@oracle.com>
[ update changelog ]
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-08-06 13:12:46 +02:00
..
2018-08-06 13:12:41 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:44 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:44 +02:00
2018-04-12 16:29:55 +02:00
2018-03-26 15:09:39 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:44 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:43 +02:00