diff options
author | Anand Jain <Anand.Jain@oracle.com> | 2015-03-10 06:38:20 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-05-27 12:27:19 +0200 |
commit | 4e51f005a22a2c7795351b975437b0cee0acce3e (patch) | |
tree | 6d417125476b5f3757b8ed487ada9cf5d40ec374 /fs/btrfs | |
parent | 248d200df34f3e44a4140f32dfc7428c52615332 (diff) | |
download | linux-stable-4e51f005a22a2c7795351b975437b0cee0acce3e.tar.gz linux-stable-4e51f005a22a2c7795351b975437b0cee0acce3e.tar.bz2 linux-stable-4e51f005a22a2c7795351b975437b0cee0acce3e.zip |
Btrfs: sysfs: fix, fs_info kobject_unregister has init_completion() twice
kobject_unregister is to handle the release of the kobject,
its completion init is being called in btrfs_sysfs_add_one(),
so we don't have to do the same in the open_ctree() again.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/disk-io.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 2ef9a4b72d06..c42503cf3462 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -2494,7 +2494,6 @@ int open_ctree(struct super_block *sb, seqlock_init(&fs_info->profiles_lock); init_rwsem(&fs_info->delayed_iput_sem); - init_completion(&fs_info->kobj_unregister); INIT_LIST_HEAD(&fs_info->dirty_cowonly_roots); INIT_LIST_HEAD(&fs_info->space_info); INIT_LIST_HEAD(&fs_info->tree_mod_seq_list); |