Btrfs: drop unnecessary device lock
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Wed, 20 Apr 2011 10:08:47 +0000 (10:08 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 23 May 2011 17:24:43 +0000 (13:24 -0400)
commit46224705656633466ca7dc71d81b3c0abc76cae4
tree2cdc8c8cc82c2262edb8d89a27e5539359e61c40
parent0c1daee085cff1395d1eba4ad6faff7810a594d8
Btrfs: drop unnecessary device lock

Drop device_list_mutex for the reader side  on clone_fs_devices and
btrfs_rm_device pathes since the fs_info->volume_mutex can ensure the device
list is not updated

btrfs_close_extra_devices is the initialized path, we can not add or remove
device at this time, so we can simply drop the mutex safely, like other
initialized function does(add_missing_dev, __find_device, __btrfs_open_devices
...).

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c