• E
    sysfs: Remove sysfs_get/put_active_two · e72ceb8c
    Eric W. Biederman 提交于
    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: NEric W. Biederman <ebiederm@xmission.com>
    Cc: Tejun Heo <tj@kernel.org>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    e72ceb8c
sysfs.h 5.4 KB