diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-07-08 14:19:17 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:04 -0400 |
commit | 7d9eb12c8739e7dc80c78c6b3596f912ecd8f941 (patch) | |
tree | 000608285b44920f22e0888753b36299bc762cef /fs/btrfs/disk-io.c | |
parent | a7a16fd772620605c76e8ac8bdbc8ccc9e3df1a0 (diff) | |
download | lwn-7d9eb12c8739e7dc80c78c6b3596f912ecd8f941.tar.gz lwn-7d9eb12c8739e7dc80c78c6b3596f912ecd8f941.zip |
Btrfs: Add locking around volume management (device add/remove/balance)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 4cdc0b6a2672..8f4c40033e92 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -1287,6 +1287,7 @@ struct btrfs_root *open_ctree(struct super_block *sb, mutex_init(&fs_info->chunk_mutex); mutex_init(&fs_info->transaction_kthread_mutex); mutex_init(&fs_info->cleaner_mutex); + mutex_init(&fs_info->volume_mutex); #if 0 ret = add_hasher(fs_info, "crc32c"); |