Commit a2db6842 authored by Committed by Greg Kroah-HartmanBrowse files
sysfs: Only take active references on attributes.
If we exclude directories and symlinks from the set of sysfs dirents where we need active references we are left with sysfs attributes (binary or not). - Tweak sysfs_deactivate to only do something on attributes - Move lockdep initialization into sysfs_file_add_mode to limit it to just attributes. Signed-off-by: Eric W. Biederman <firstname.lastname@example.org> Acked-by: WANG Cong <email@example.com> Cc: Tejun Heo <firstname.lastname@example.org> Signed-off-by: Greg Kroah-Hartman <email@example.com>