• Eric W. Biederman's avatar
    sysfs: Remove sysfs_get/put_active_two · e72ceb8c
    Eric W. Biederman authored
    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: default avatarEric W. Biederman <ebiederm@xmission.com>
    Cc: Tejun Heo <tj@kernel.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    e72ceb8c
dir.c 20.3 KB