1
linux/fs/sysfs
Tejun Heo 2b29ac252a sysfs: reimplement symlink using sysfs_dirent tree
sysfs symlink is implemented by referencing dentry and kobject from
sysfs_dirent - symlink entry references kobject, dentry is used to
walk the tree.  This complicates object lifetimes rules and is
dangerous - for example, there is no way to tell to which module the
target of a symlink belongs and referencing that kobject can make it
linger after the module is gone.

This patch reimplements symlink using only sysfs_dirent tree.  sd for
a symlink points and holds reference to the target sysfs_dirent and
all walking is done using sysfs_dirent tree.  Simpler and safer.

Please read the following message for more info.

  http://article.gmane.org/gmane.linux.kernel/510293

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-07-11 16:09:04 -07:00
..
bin.c sysfs: make sysfs_dirent->s_element a union 2007-07-11 16:09:04 -07:00
dir.c sysfs: reimplement symlink using sysfs_dirent tree 2007-07-11 16:09:04 -07:00
file.c sysfs: make sysfs_dirent->s_element a union 2007-07-11 16:09:04 -07:00
group.c security: prevent permission checking of file removal via sysfs_remove_group() 2007-04-27 10:57:33 -07:00
inode.c sysfs: make sysfs_dirent->s_element a union 2007-07-11 16:09:04 -07:00
Makefile
mount.c sysfs: make sysfs_dirent->s_element a union 2007-07-11 16:09:04 -07:00
symlink.c sysfs: reimplement symlink using sysfs_dirent tree 2007-07-11 16:09:04 -07:00
sysfs.h sysfs: reimplement symlink using sysfs_dirent tree 2007-07-11 16:09:04 -07:00