Btrfs: sysfs: fix, fs_info kobject_unregister has init_completion() twice
authorAnand Jain <Anand.Jain@oracle.com>
Mon, 9 Mar 2015 22:38:20 +0000 (06:38 +0800)
committerDavid Sterba <dsterba@suse.cz>
Wed, 27 May 2015 10:27:19 +0000 (12:27 +0200)
commit4e51f005a22a2c7795351b975437b0cee0acce3e
tree6d417125476b5f3757b8ed487ada9cf5d40ec374
parent248d200df34f3e44a4140f32dfc7428c52615332
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>
fs/btrfs/disk-io.c