sysfs: Remove sysfs_get/put_active_two
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 11 Feb 2010 23:18:38 +0000 (15:18 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:51 +0000 (17:04 -0800)
commite72ceb8ccac5f770b3e696e09bb673dca7024b20
tree9868803df687838c3c5f6f2265ceb7532b93a5f4
parent3c31f07ad0dab02fe17195d32a965d57fd947707
sysfs: Remove sysfs_get/put_active_two

It turns out that holding an active reference on a directory is
pointless.  The purpose of the active references are to allows us to
block when removing sysfs entries that have custom methods so we don't
remove modules while running modular code and to keep those custom
methods from accessing data structures after the files have been
removed.  Further sysfs_remove_dir remove all elements in the
directory before removing the directory itself, so there is no chance
we will remove a directory with active children.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/bin.c
fs/sysfs/dir.c
fs/sysfs/file.c
fs/sysfs/sysfs.h