diff options
author | David Sterba <dsterba@suse.com> | 2017-06-22 03:59:40 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-08-16 16:12:04 +0200 |
commit | 4958aa6821c7c4e9682806bc4fea92250d020829 (patch) | |
tree | c4adcab287d6ec31cd1dd5b4949f4ce67121b0ac /fs/btrfs/disk-io.c | |
parent | d3c0bab5632337f6d3841fbe0dc238a743cb4472 (diff) | |
download | linux-stable-4958aa6821c7c4e9682806bc4fea92250d020829.tar.gz linux-stable-4958aa6821c7c4e9682806bc4fea92250d020829.tar.bz2 linux-stable-4958aa6821c7c4e9682806bc4fea92250d020829.zip |
btrfs: drop chunk locks at the end of close_ctree
The pinned chunks might be left over so we clean them but at this point
of close_ctree, there's noone to race with, the locking can be removed.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 57a857142cda..c2d3699a70bd 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3944,7 +3944,6 @@ void close_ctree(struct btrfs_fs_info *fs_info) __btrfs_free_block_rsv(root->orphan_block_rsv); root->orphan_block_rsv = NULL; - mutex_lock(&fs_info->chunk_mutex); while (!list_empty(&fs_info->pinned_chunks)) { struct extent_map *em; @@ -3953,7 +3952,6 @@ void close_ctree(struct btrfs_fs_info *fs_info) list_del_init(&em->list); free_extent_map(em); } - mutex_unlock(&fs_info->chunk_mutex); } int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid, |