kernel-fxtec-pro1x/fs/sysfs
Eric W. Biederman 932ea2e374 sysfs: Introduce sysfs_rename_mutex
Looking carefully at the rename code we have a subtle dependency
that the structure of sysfs not change while we are performing
a rename.  If the parent directory of the object we are renaming
changes while the rename is being performed nasty things could
happen when we go to release our locks.

So introduce a sysfs_rename_mutex to prevent this highly
unlikely theoretical issue.

In addition hold sysfs_rename_mutex over all calls to
sysfs_get_dentry. Allowing sysfs_get_dentry to be simplified
in the future.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-10-12 14:51:08 -07:00
..
bin.c sysfs: cleanup semaphore.h 2007-10-12 14:51:03 -07:00
dir.c sysfs: Introduce sysfs_rename_mutex 2007-10-12 14:51:08 -07:00
file.c sysfs: Introduce sysfs_rename_mutex 2007-10-12 14:51:08 -07:00
group.c sysfs: Remove first pass at shadow directory support 2007-10-12 14:51:03 -07:00
inode.c sysfs: Remove sysfs_instantiate 2007-10-12 14:51:07 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mount.c sysfs: Make sysfs_mount static 2007-10-12 14:51:07 -07:00
symlink.c sysfs: Make sysfs_mount static 2007-10-12 14:51:07 -07:00
sysfs.h sysfs: Introduce sysfs_rename_mutex 2007-10-12 14:51:08 -07:00