commit | 9c6d173ea6e4c8c939ae6c257c7fc18f7b320316 | [log] [tgz] |
---|---|---|
author | Anand Jain <anand.jain@oracle.com> | Tue May 29 14:10:20 2018 +0800 |
committer | David Sterba <dsterba@suse.com> | Mon Aug 06 13:12:46 2018 +0200 |
tree | 01f0adb7bd6b05422d6c079e15feccc38a437bb2 | |
parent | 4306a97449f9a0f9e5229af7889d4401315355aa [diff] |
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>