Btrfs: fix locking issue in btrfs_remove_block_group
authorYan Zheng <zheng.yan@oracle.com>
Wed, 21 Jan 2009 15:49:16 +0000 (10:49 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 21 Jan 2009 15:49:16 +0000 (10:49 -0500)
commit3dfdb9348ada18c74c39b9ae7b115e0594792281
tree0ae829011d6c29f61035982bfc115dd037e8242c
parentc6e308713a47527f88a277ee95b7c5d1db80f77b
Btrfs: fix locking issue in btrfs_remove_block_group

We should hold the block_group_cache_lock while modifying the
block groups red-black tree. Thank you,

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
fs/btrfs/extent-tree.c