]> err.no Git - linux-2.6/commit
sysfs: use sysfs_mutex to protect the sysfs_dirent tree
authorTejun Heo <htejun@gmail.com>
Wed, 13 Jun 2007 19:27:23 +0000 (04:27 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:08 +0000 (16:09 -0700)
commit3007e997de91ec59af39a3f9c91595b31ae6e08b
tree4ed4df3ef3a249d2a4b562e36876fc8d4a3fabd9
parent5f9953237f684ea1778adb9d26162da00b282225
sysfs: use sysfs_mutex to protect the sysfs_dirent tree

As kobj sysfs dentries and inodes are gonna be made reclaimable,
i_mutex can't be used to protect sysfs_dirent tree.  Use sysfs_mutex
globally instead.  As the whole tree is protected with sysfs_mutex,
there is no reason to keep sysfs_rename_sem.  Drop it.

While at it, add docbook comments to functions which require
sysfs_mutex locking.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/dir.c
fs/sysfs/file.c
fs/sysfs/inode.c
fs/sysfs/symlink.c
fs/sysfs/sysfs.h