]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd0dd50b6502a37254d76fef12fb1ff160c6f6a4
tree9868803df687838c3c5f6f2265ceb7532b93a5f4
parente33576b2963925d6203f3f8e87bd3c04c8a51938
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